1.

Solve : A better way to stop a MS-DOS window from automatically closing in Windows?

Answer» MAKING a shortcut that loads C:\WINNT\system32\CMD.EXE /K "C:\My programs\test.bat" is not always perfect, especially USING remote shell.

Instead, create 2 .bat files, 1 with
Code: [Select]ECHO off
START cmd /K "C:\Users\<username>\go2.bat"
(thats vista directories BTW, any other windows versions are different)
Then put the real code in go2.batIs there a question that you have to ask?

Personally if I am running a BATCH file and want it to remain open i simply:

Code: [Select]...
pause >NUL
...
Which waits for a KEYPRESS though with no visible output.


Discussion

No Comment Found