Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help creating script

Status
Not open for further replies.

dhallibu

IS-IT--Management
Feb 4, 2008
1
US
I have a file share of \\insular\glodata\updates\ that contains a two folders called ‘exe’ and ‘reports’. I want a batch file that can be called via the login script to copy both folders and all subfolder/files to the local machine’s c:\program files\gloEMR\ folder. The ‘exe’ folder should go to the root of the gloEMR folder, and the contents of the ‘reports’ folder should go to gloEMR\reports directory. This batch file should also automatically overwrite any existing files.
 
xcopy \\insular\glodata\updates\exe "c:\program files\gloEMR" /Y /E
xcopy \\insular\glodata\updates\reports "c:\program files\gloEMR\reports" /Y /E

Should get you close. Cant remember if UNC names work correctly, might have to map a drive first.



RoadKi11

"This apparent fear reaction is typical, rather than try to solve technical problems technically, policy solutions are often chosen." - Fred Cohen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top