Friday, August 15, 2014

How can I execute a Windows command line in background?


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

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...