Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Batch File Privileges Vista

  • 11-10-2009 04:22AM
    #1
    Registered Users, Registered Users 2 Posts: 8,548 ✭✭✭


    I have a batch file that is working exactly as I want it to in XP.

    My problem now is that it will not run correctly in Vista because of the privileges.

    It returns "The FSUTI utility requires that you have administrative privileges"

    Part of what the batch file does is scan the system & list all available drives with a prompt allowing the user to choose one. It uses the "FSUTI utility" to achieve that which is fine under XP but Vista requires administrative privileges in order to allow it to run.

    Is there anyway to set the administrative privileges in a batch file?

    -

    "Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid."



Comments

  • Registered Users, Registered Users 2 Posts: 86,683 ✭✭✭✭Overheal


    change the properties for your target .exe to run in administrator mode.

    Also if you Disable UAC (google - its a snap) should be problem solved.


  • Registered Users, Registered Users 2 Posts: 8,548 ✭✭✭Gadgetman496


    Overheal wrote: »
    change the properties for your target .exe to run in administrator mode.

    Also if you Disable UAC (google - its a snap) should be problem solved.

    Thanks for the reply ;)

    Is it not correct to say that you can't change the properties for your target .exe to run in administrator mode in Vista?

    I thought you can only do that for a shortcut to the file?

    Either way, it's a batch file & I need it to be able to run out of the box without the user having to change anything on their system in order to run it.

    -

    "Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid."



  • Registered Users, Registered Users 2 Posts: 86,683 ✭✭✭✭Overheal


    I thought you can only do that for a shortcut to the file?
    Nope. the exe too.
    Either way, it's a batch file & I need it to be able to run out of the box without the user having to change anything on their system in order to run it

    Then you may be out of luck. I would reccomend telling your end user to disable User Account Control.


Advertisement
Advertisement