-1

I used robocopy batch script in Windows Vista.

It takes about an hour.

This script can't use in Windows7, because it turns offline about 5 minutes later.

Can I keep online in this batch script ?

Tomasz Jakub Rup
  • 10,502
  • 7
  • 48
  • 49

1 Answers1

0

I think what you're asking is: Why does the console window in which the robocopy script run stays on my screen for an hour when I execute it in my Vista machine, but closes automatically within five minutes when I execute it in my Win7 machine.

If that is the case, I believe it is due to some error that led to script to end it's execution and closing the prompt. It usually closes if you run the script by clicking on it and the script is done executing.

To figure out the error, you should try running CMD application (the windows command line tool). Run CMD.exe.

Then navigate to the folder where your script is located.

Run the script via command line.

Check if there is any error messages on the screen and edit your question, adding the error message.

If this is not what you meant, please add more info to your question.

guilhermo
  • 58
  • 6
  • thank you for replying for my problem,but the situation is a bit different. In win7 ,robocopy works fine at first,but 'The system cannot find the file specified.' or 'The network path was not found.' are printed in terminal after five minutes later. – user1625663 Dec 08 '15 at 06:29
  • this trouble is resolved.It's due to network trouble.Thank you. – user1625663 Dec 10 '15 at 03:15