Command Prompt Question


J

Jim

Is there a way in Windows XP to execute a batch file and have the computer
pause after every command? I know I could put a pause statement after each
command but since the batch file has over 1,000 lines it is a bit tedious.

In windows 98 it used to go something like this if my memory is correct

T2.bat /c /k

Any suggestions would be appreciated.

Thanks in advance,

Jim
 
Ad

Advertisements

J

Jerold Schulman

Is there a way in Windows XP to execute a batch file and have the computer
pause after every command? I know I could put a pause statement after each
command but since the batch file has over 1,000 lines it is a bit tedious.

In windows 98 it used to go something like this if my memory is correct

T2.bat /c /k

Any suggestions would be appreciated.

Thanks in advance,

Jim

I have attached ADDPause.txt.
Rename it to AddPause.vbs and place it in a folder that is in your PATH, like c:\util.
If you batch is c:\util\mybatch.bat, then at a CMD.EXE prompt:
cscript //nologo c:\util\AddPause.vbs c:\util\mybatch.bat c:\util\Pause_mybatch.bat

Then run Pause_Mybatch.bat instead of mybatch.bat.




Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
 
T

Timo Salmi

Jim said:
Is there a way in Windows XP to execute a batch file and have the
computer pause after every command? I know I could put a pause
statement after each command but since the batch file has over
1,000 lines it is a bit tedious.

Actually, it is not, since it can easily be automated.

108} How can I execute a script one line at a time to debug it?
167495 Jun 18 2006 ftp://garbo.uwasa.fi/pc/link/tscmd.zip
tscmd.zip Useful NT/2000/XP script tricks and tips, T.Salmi

All the best, Timo
 
J

Jim

Thank you.


Jerold Schulman said:
I have attached ADDPause.txt.
Rename it to AddPause.vbs and place it in a folder that is in your PATH,
like c:\util.
If you batch is c:\util\mybatch.bat, then at a CMD.EXE prompt:
cscript //nologo c:\util\AddPause.vbs c:\util\mybatch.bat
c:\util\Pause_mybatch.bat

Then run Pause_Mybatch.bat instead of mybatch.bat.




Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
 
Ad

Advertisements

J

Jim

Thank you

Timo Salmi said:
Actually, it is not, since it can easily be automated.

108} How can I execute a script one line at a time to debug it?
167495 Jun 18 2006 ftp://garbo.uwasa.fi/pc/link/tscmd.zip
tscmd.zip Useful NT/2000/XP script tricks and tips, T.Salmi

All the best, Timo

--
Prof. Timo Salmi ftp & http://garbo.uwasa.fi/ archives 193.166.120.5
Department of Accounting and Business Finance ; University of Vaasa
mailto:[email protected] <http://www.uwasa.fi/~ts/> ; FIN-65101, Finland
Timo's FAQ materials at http://www.uwasa.fi/~ts/http/tsfaq.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top