Quantcast
Channel: Active questions tagged windows - Super User
Viewing all articles
Browse latest Browse all 9696

Run Windows command line in Task Scheduler without opening a cmd window

$
0
0

I set up a Windows task schedule to run every five minutes. The task starts the cmd.exe program and runs a command.

The problem is that every five minutes a cmd window is opened and it's annoying. Is there a way to handle this without 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"

Viewing all articles
Browse latest Browse all 9696