Link to home
Start Free TrialLog in
Avatar of hcp27
hcp27Flag for United States of America

asked on

Need to copy a file or folder from Windows 2003 SBS to all network computers folder with a script.

I have about 35 workstations on a Windows 2003 Server domain. We are in the process of beta testing a new inventory program that he being developed by another company. So once a week we have a new version that is placed on our server remotely by this company and  I have to copy the new file to a directory on each client workstations C: Drive. Each directory is the same name of C:/2009_Code. Is there a way I can get a script to just copy the new file to every workstation when needed?
Avatar of Lee W, MVP
Lee W, MVP
Flag of United States of America image

Add to the SBS LOGIN Script:

IF NOT EXIST "C:\2009_Code\NewFileName" COPY "\\Server\Share\Path\NewFile" "C:\2009_Code"

If the filename doesn't change but the version of the file does, I would use a marker file (a simple text file you copy with a different name each time)

IF NOT EXIST "C:\2009_Code\MarkerFileVersionXX" (
   COPY "\\Server\Share\Path\NewFile" "C:\2009_Code"
   COPY "\\Server\Share\Path\MarkerFileVersionXX" "C:\2009_Code"
)
Avatar of hcp27

ASKER

Could I do this without having it execute only when they log on and just manually execute when it needs to be done?
ASKER CERTIFIED SOLUTION
Avatar of Lee W, MVP
Lee W, MVP
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hcp27

ASKER

Yes thank you very much. That would work perfectly!