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@thost.com/"   "rm "%f" " "close" "exit"

1 Answer 1


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

enter image description here

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.