Computing.Net > Forums > Programming > Batch file to copy update file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Batch file to copy update file

Reply to Message Icon

Name: rsn000
Date: July 19, 2007 at 14:04:47 Pacific
OS: XP PRO
CPU/Ram: 2.0
Comment:

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"



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: July 20, 2007 at 02:42:29 Pacific
Reply:

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



0

Response Number 2
Name: rsn000
Date: July 20, 2007 at 07:47:27 Pacific
Reply:

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.


0

Response Number 3
Name: tonysathre
Date: July 20, 2007 at 08:30:09 Pacific
Reply:

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


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Batch File deleting files... In a bind, ideas?



Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Batch file to copy update file

Batch Job to Copy folders www.computing.net/answers/programming/batch-job-to-copy-folders-/18383.html

Batch sript to copy the folders modified toda www.computing.net/answers/programming/batch-sript-to-copy-the-folders-modified-toda/19369.html

Windows Batch + C++ to copy files? www.computing.net/answers/programming/windows-batch-c-to-copy-files/6254.html