Dos batch file

  • Thread starter Thread starter Dig
  • Start date Start date
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
 
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
 
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
 
This may work, try to run your cmd script by using:
cmd.exe /K filename.cmd

thanks
Soo Kuan
 
Back
Top