bankadmin
asked on
need help with a .bat file xcopy command
I know I missing something simple here. This is what Im attempting to do.
I need to copy a file into mutilple users profiles on a citrix server and for some reason I cant get it to work. here is an example
xcopy "F:\Software\deployment.pr operties" "C:\Documents and Settings\%userprofile%\App lication Data\Sun\Java\Deployment"
What is wrong with the command?
I need to copy a file into mutilple users profiles on a citrix server and for some reason I cant get it to work. here is an example
xcopy "F:\Software\deployment.pr
What is wrong with the command?
ASKER
I got a invalid parameters error.. Also I used the exact command but specified a specific user instead of %userprofile% and it worked. So I know there are no mistakes in my paths
ASKER
I did a little more testing and I removed the docs and settings from the destination and it didnt error out but it just defaulted to the users I was running it with. i need it to copy to all users
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Missed something, change line no 10 to following and try
desdir=sf.Path & "\Application Data\Sun\Java\Deployment\"
desdir=sf.Path & "\Application Data\Sun\Java\Deployment\"
ASKER
THat worked. I had to click ok for each user but it worked..
THanks
THanks
If you run from command prompt using cscript file.vbs, it will not pop up message to click.
Thanks for the points.
regards
Prashanth
Thanks for the points.
regards
Prashanth
xcopy "F:\Software\deployment.pr