copy files via unc path..but with exclusion some subfolders in path
hello I need to copy some configuration files to 35 PCs in user profile subfolder via simple cmd script. But I have problem because each user have own subfolder in midle of unc path (bold text bellow): robocopy (source) "C:\Documents and Settings\username1(.domainname)\Application Data\Adobe\Adobe PDF\Settings" robocopy (source) "C:\Documents and Settings\username2(.domainname)\Application Data\Adobe\Adobe PDF\Settings" etc... Is it here any way to use some exclusion mark in path to exlude bold text and to successfully copy files to end folder (settings)? thanks
February 25th, 2011 10:04am

System variable can be used in this case. Generally the folder C:\Documents and Settings\username1(.domainname) is equal to %userprofile%. Please refer: Recognized Environment Variables http://technet.microsoft.com/en-us/library/dd560744(WS.10).aspx Microsoft Windows XP - Command shell overview http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds_shelloverview.mspx?mfr=truePlease remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
February 27th, 2011 11:56pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics