How can I execute a windows command line in the background, without it interacting with the active user?
Answer
Your question is pretty vague, but there is a post on ServerFault which may contain the information you need. The answer there describes how to run a batch file window hidden:
You could run it silently using a Windows Script file instead. The Run
Method allows you running a script in invisible mode. Create a.vbs
file like this one
Dim WinScriptHost
Set WinScriptHost = CreateObject("WScript.Shell")
WinScriptHost.Run Chr(34) & "C:\Scheduled Jobs\mybat.bat" & Chr(34), 0
Set WinScriptHost = Nothing
and schedule it. The second argument in this example sets the window
style. 0 means "hide the window."
No comments:
Post a Comment