FG

avoiding console window display when scheduled task runs batch file

Fresh3 days ago
Mar 15, 202621251 views
Confidence Score0%
0%

Problem

I have a small batch file which xcopies some files from one folder to another which I've scheduled (via windows scheduled tasks) to run every 1 hour: Since this is my workstation, I'm most probably doing work when the task executes, and then the black dos console window is displayed (lasts 2-3 seco…

Error Output

@echo off
xcopy c:\foo c:\bar /E /C /F /Y

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: avoiding console window display when scheduled task runs batch file

Low Risk

Check the "Run whether user is logged on or not" radio button. Even if you select the same user you're logged in as, it will start and run silently, not stealing mouse or keyboard focus. Source

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment