+ Post New Thread
Results 1 to 8 of 8
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 ...
  1. #1
    chrbb's Avatar
    Join Date
    Oct 2005
    Location
    Midlands
    Posts
    1,507
    Thank Post
    141
    Thanked 67 Times in 62 Posts
    Rep Power
    47

    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"
    "C:\Users\%username%\AppData\Roaming\Adobe\Acrobat \11.0\Security\"

  2. #2

    Jawloms's Avatar
    Join Date
    Aug 2007
    Posts
    817
    Thank Post
    175
    Thanked 104 Times in 72 Posts
    Rep Power
    185
    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?

    Stuart

  3. #3
    chrbb's Avatar
    Join Date
    Oct 2005
    Location
    Midlands
    Posts
    1,507
    Thank Post
    141
    Thanked 67 Times in 62 Posts
    Rep Power
    47
    I've tried substituting %userprofile% for %username% also starting the script on %appdata% not made any difference. No error message, just doen't work.

  4. #4

    Jawloms's Avatar
    Join Date
    Aug 2007
    Posts
    817
    Thank Post
    175
    Thanked 104 Times in 72 Posts
    Rep Power
    185
    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.

    Stuart

  5. #5
    chrbb's Avatar
    Join Date
    Oct 2005
    Location
    Midlands
    Posts
    1,507
    Thank Post
    141
    Thanked 67 Times in 62 Posts
    Rep Power
    47
    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?

  6. #6

    Jawloms's Avatar
    Join Date
    Aug 2007
    Posts
    817
    Thank Post
    175
    Thanked 104 Times in 72 Posts
    Rep Power
    185
    Just stick with the %username% and set it as a log in script? That way it will do it for whoever logs on.

  7. #7
    chrbb's Avatar
    Join Date
    Oct 2005
    Location
    Midlands
    Posts
    1,507
    Thank Post
    141
    Thanked 67 Times in 62 Posts
    Rep Power
    47
    Lol, it came to me as I typed the last response, done that, will test it this afternoon. Thanks for the help.

  8. #8
    MordyT's Avatar
    Join Date
    Sep 2012
    Location
    In a computer
    Posts
    464
    Thank Post
    44
    Thanked 73 Times in 68 Posts
    Rep Power
    19
    Protip... %localappdata% and %appdata% instead of c users username appdata local /roaming

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 5
    Last Post: 1st July 2014, 08:34 AM
  2. Replies: 9
    Last Post: 17th August 2012, 03:56 PM
  3. Help needed for edugeek-joomla-package-sysman_mk + EduMoodle theme
    By costibudai in forum EduGeek Joomla 1.5 Package
    Replies: 7
    Last Post: 15th June 2010, 02:50 AM
  4. Replies: 7
    Last Post: 1st August 2007, 09:47 PM
  5. Replies: 6
    Last Post: 15th June 2007, 12:30 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •