Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Below is a batch file I created. What I would like for it to do is copy the master file on a daily base or each time it is updated from the network to the clients. The file is set to run during logon. But for some reason, it isn't working. Everytime I update the master file and expect the clients to update after logon, it doesn't. Can anyone tell me if the switches I am using are correct? Thanks.
Here is my file:
xcopy /d /y "S:\Outlook Address Book\mailbox.pab" "C:\Documents and Settings\user\Local Settings\Application Data\Microsoft\Outlook"

Your switches look OK; must be something else.
Try putting a PAUSE after the xcopy.
=====================================
If at first you don't succeed, you're about average.M2

Thanks,
Since the file isn't that big I took off the /d switch and it works good now.
I'm not very good with scripts.
There is another script I need help with. I want to create a script to update all scripts on clients. How would I go about do that?For example on the client there is a script to copy files over to the network, say called: "Copy.bat"
If I want to change the location of where this file is saving to, do I just create another script to copy updated scripts to the clients? Is there a way for me to do a mass update at one time instead of going to every PC?
Thanks again for you help.

If your using Active Directory, you can use Group Policy Objects to roll-out the scripts to every workstation in the domain.
"Computer security." — Oxymoron

![]() |
Batch File deleting files...
|
In a bind, ideas?
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |