All,
I am attempting to create a script that will copy everything in My Documents from the local machine to a network share for that particular user.
I have tested xcopy, but I think its failing when I attempt to use the %username% variable in the file path. If that's not correct, does anyone know the correct format or maybe another tool that will allow me to do this?
My command looks like this:
xcopy "c:\documents and settings\%username%\My Documents" "U:\MyDocuments" /S/C/Q/Y/R/D/M
any suggestions would be appreciated.
Zane D.
Systems Admin
I am attempting to create a script that will copy everything in My Documents from the local machine to a network share for that particular user.
I have tested xcopy, but I think its failing when I attempt to use the %username% variable in the file path. If that's not correct, does anyone know the correct format or maybe another tool that will allow me to do this?
My command looks like this:
xcopy "c:\documents and settings\%username%\My Documents" "U:\MyDocuments" /S/C/Q/Y/R/D/M
any suggestions would be appreciated.
Zane D.
Systems Admin