About the author

Related Articles

3 Comments

  1. 1
    Gerrard

    Gerrard Tai

    You can just do this:
    copy test.bat “C:Users%USERNAME%AppDataRoamingMicrosoftWindowsStart MenuProgramsStartup”
    %USERNAME% will be automatically filled in with the user’s username.

    Reply
  2. 2
    Søren

    Søren Debois

    Probably, you don’t have permissions to write to folders shared by all users, so the first part fails. But you can write to your own folders, so that part works.

    Reply
  3. 3
    user3407000@email.null'

    user3407000

    I guess that you must call the script from an admin account in order to copy a file to the system folders. Try “Execute as administrator” on CMD and call your script.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

Copyright © 2017 SolutionMmyself.com