Reputation:
I have a bat file that starts a program and already put my username and password, and I have to let the cmd open for the program to work. I want to hide the cmd window to prevent me from closing accidentally, here's the code:
*prgram.name* -o *server* -u *username* -p *password*
I need this hidden from eyes, but appearing in the task manager to close when I want it... Thanks
Upvotes: 1
Views: 4445
Reputation: 41234
There is a utility called CMDOW
that can launch a cmd window that is hidden, amongst other things.
Some AV tools flag it as a hack tool because of that.
Upvotes: 0
Reputation: 2688
hide.vbs:
WScript.CreateObject("WScript.Shell").Run "*prgram.name* -o *server* -u *username* -p *password*", 0 , false
this will run the cmd hidden.
Upvotes: 1