Dos batch file

D

Dig

I created a simple batch file in XP Pro to copy files from the hard drive to
a zip drive for someone.

It works fine except that when it is finished running the dos window
immediately disappears. The user, who was running Win98, said that the batch
file in the previous Windows version (98) would stay open and would not
only show the files beigned copied over but it would say how many files were
copied.

Is there a way to keep the dos window open so she can see "x" files copied
then let her close the window in XP Pro?

Thanks
 
T

Torgeir Bakken (MVP)

Dig said:
I created a simple batch file in XP Pro to copy files from the hard drive to
a zip drive for someone.

(snip)
Is there a way to keep the dos window open so she can see "x" files copied
then let her close the window in XP Pro?

Hi

Add a pause command at the bottom of the batch file, like this:


xcopy fromsomewhere tosomewhere
pause
 
R

Rob Schneider

add a "pause" as last line in the file ... run "help pause" to see usage.

Hope this is useful to you. Let us know.

rms
 
S

Soo Kuan Teo [MS]

This may work, try to run your cmd script by using:
cmd.exe /K filename.cmd

thanks
Soo Kuan
 

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