/build/static/layout/Breadcrumb_cap_w.png

Script to backup files to network drive

Hello,

I have a script set up to run on user logoff through GP on Windows 7 to backup a file from the user area to the network drive. When the user logs off I can see the script flash up (so i take it it's running) but the file doesn't get updated on the network area. The only thing I can think is that the network share is getting disconnected before the script can copy the file.

 

Is there any other place I should run the script or is there any way to keep the network share linked until the file has copied?


0 Comments   [ + ] Show comments

Answers (3)

Answer Summary:
Robocopy seemed to fixed my issue. I had been using xcopy which didn't seem to work on logoff but the robocopy did.
Posted by: RandomITPro 12 years ago
4th Degree Black Belt
2

Try this test while I attempt to get you a better answer,

On one computer create a scheduled task to run your script at logoff. Make sure you check Run whether user is logged on or not. If it fails, it should write an entry in the Windows system log and (kinda) tell you why.

Posted by: Moedius 12 years ago
Posted by: alphabeta 12 years ago
Black Belt
0

Robocopy seemed to fixed my issue. I had been using xcopy which didn't seem to work on logoff but the robocopy did.

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ