Run Windows Command Line in Windows Task Scheduler Without Opening a Cmd Window

Run Windows Command Line in Windows Task Scheduler Without Opening a Cmd Window

I set up a windows task schedule to run every 5 minutes. The task start the cmd.exe program and runs a command. The problem is that every 5 minutes a cmd window is opened and its annoying. Is there a way to this with out opening the cmd window?

The command I run is

/c for  %f in (*) do "C:\Program Files (x86)\WinSCP\WinSCP.exe"  /command "open ftp://user:pass@"   "rm "%f" " "close" "exit"
2

1 Answer

There is a way to hide the cmd window: choose "Run whether user is logged on or not" when creating the task.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

David Miller
Author

David Miller

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.