Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: How can i allow a batch file administrator permission?  (Read 2561 times)

0 Members and 1 Guest are viewing this topic.

shrshr429

    Topic Starter


    Beginner

    How can i allow a batch file administrator permission?
    « on: August 21, 2009, 06:41:43 PM »

    I developed a batch file on xp that will add text to a file. When i run the batch file on vista or windows 7 it says "Acces is denied".

    My question is, is there anyway to either bypass this to allow access, or simply ask the user permission.

    smeezekitty

    • Guest
    Re: How can i allow a batch file administrator permission?
    « Reply #1 on: August 22, 2009, 12:19:17 AM »
    i think it is a file permission problem
    but you can right click command prompt
    click run as administrator and type the name of your batch file
    (you may need to cd to the correct directory)

    Carbon Dudeoxide

    • Global Moderator

    • Mastermind
    • Thanked: 169
      • Yes
      • Yes
      • Yes
    • Certifications: List
    • Experience: Guru
    • OS: Mac OS
    Re: How can i allow a batch file administrator permission?
    « Reply #2 on: August 22, 2009, 12:23:34 AM »
    Or just run your batch file as Admin. (Right click it)

    shrshr429

      Topic Starter


      Beginner

      Re: How can i allow a batch file administrator permission?
      « Reply #3 on: August 22, 2009, 01:51:46 PM »
      Yea i thought of that, see the problem with that is the program autoruns off the cd, id rather not have to tell the user to navigate throughout the cd to find the file then choose administrator. Is there anyway to make the program as the user for permission. I was thinking of making it an .exe file, im pretty sure windows will then ask the user for permission when it autoruns.