closing a dos batch script
closing a dos batch script
(OP)
Hi there,
I have a batch script that opens up a program (putty) and automatically logs me into a SSH session.
The problem I have is that, when the program putty.exe opens and logs me in, I want to close the command line window.
Is there a command I can execute after this cmd script that will close the main console window?
I am sorry if this is the wrong place for a question like this, but I found that this was the most relevant place searching trough the forums.
Thanks !
I have a batch script that opens up a program (putty) and automatically logs me into a SSH session.
CODE
C:\putty.exe -load "server1" -l root -pw password
The problem I have is that, when the program putty.exe opens and logs me in, I want to close the command line window.
Is there a command I can execute after this cmd script that will close the main console window?
I am sorry if this is the wrong place for a question like this, but I found that this was the most relevant place searching trough the forums.
Thanks !
RE: closing a dos batch script
but I will say a lot depends on how you are opening this batch file. If you open up the console to run it, the console will remain after you run the file.
You can always try inserting "exit" and see if it changes anything.
RE: closing a dos batch script
Why not just create a shortcut to putty.exe and add the extra parameters at the commandline after putty.exe, just like in the batchfile? You can now also attach a nice (putty-standard) icon to the shortcut, and it should act exactly the same.
HTH
TonHu