Scripts Thread, Help needed for xcopy script in Coding and Web Development; Hi attempting to stop an adobe reader popup, worked out that i need to move an *.acrodata file to another ...
24th October 2013, 12:19 PM #1
Help needed for xcopy script
Hi attempting to stop an adobe reader popup, worked out that i need to move an *.acrodata file to another folder.
So using this script on windows 7 - if I specify the username ie class2 the script works. I've tried with %userprofile% but it's not working.
xcopy "C:\Users\%username%\AppData\Roaming\Adobe\Acrobat \10.0\Security\*.acrodata"
IDG Tech News
24th October 2013, 12:26 PM #2
You've said that you've tried with %userprofile%, but then put your line in with %username%. Which are you trying to get working? Or will either do so long as it works!? When it fails, does it give an error?
24th October 2013, 12:43 PM #3
I've tried substituting %userprofile% for %username% also starting the script on %appdata% not made any difference. No error message, just doen't work.
24th October 2013, 12:49 PM #4
xcopy "C:\Users\%username%\AppData\Roaming\Adobe\Acrobat \10.0\Security\*.acrodata" "C:\Users\%username%\AppData\Roaming\Adobe\Acrobat \11.0\Security\"
This line worked for me. The only difference I can see between yours and this is that you have a space between "Acrobat" and the following "\"
I just copied and pasted this in to a command prompt.
24th October 2013, 01:49 PM #5
Ok, now it will copy my file across but I want to be able to run it for all users and copy their file across at the same time. Is that possible?
24th October 2013, 02:33 PM #6
Just stick with the %username% and set it as a log in script? That way it will do it for whoever logs on.
24th October 2013, 02:45 PM #7
Lol, it came to me as I typed the last response, done that, will test it this afternoon. Thanks for the help.
24th October 2013, 06:59 PM #8
Protip... %localappdata% and %appdata% instead of c users username appdata local /roaming
By EN4CER in forum Scripts
Last Post: 17th August 2012, 04:56 PM
By costibudai in forum EduGeek Joomla 1.5 Package
Last Post: 15th June 2010, 03:50 AM
Last Post: 18th January 2008, 02:46 PM
By beeswax in forum Coding
Last Post: 1st August 2007, 10:47 PM
By jason_in98 in forum Hardware
Last Post: 15th June 2007, 01:30 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)