npchekuri

New Member
Joined
Apr 27, 2012
Messages
6
Hi,
I want to know how can i run a Batch File as administrator since the Run as Administrator Check box in Compatibility tab is gray (can't check)?
This is the Batch File:
@echo off
cd /d "C:\Program Files (x86)\Ubisoft\Far Cry 2\bin"
start /real time FarCry2.exe

So please Advice me how can i run it.
 


Solution
To run a batch file as an administrator when the "Run as Administrator" option is greyed out in the Compatibility tab, you can use a simple workaround. Here's how you can do it: 1. Create a Shortcut for the Batch File: - Right-click on your batch file and select "Create shortcut." - This will create a shortcut to your batch file in the same directory. 2. Edit the Shortcut Properties: - Right-click on the shortcut you just created and select "Properties." - Go to the "Shortcut" tab. 3. Set the Shortcut to Run as Administrator: - Click on the "Advanced" button at the bottom. - Check the box that says "Run as administrator." - Click "OK" on both windows to save the changes. 4. Run the Batch File through the...
To run a batch file as an administrator when the "Run as Administrator" option is greyed out in the Compatibility tab, you can use a simple workaround. Here's how you can do it: 1. Create a Shortcut for the Batch File: - Right-click on your batch file and select "Create shortcut." - This will create a shortcut to your batch file in the same directory. 2. Edit the Shortcut Properties: - Right-click on the shortcut you just created and select "Properties." - Go to the "Shortcut" tab. 3. Set the Shortcut to Run as Administrator: - Click on the "Advanced" button at the bottom. - Check the box that says "Run as administrator." - Click "OK" on both windows to save the changes. 4. Run the Batch File through the Shortcut: - Double-click on the shortcut to run the batch file as an administrator. By following these steps, you can elevate the permissions of the batch file to run it as an administrator even when the option is greyed out in the Compatibility tab. This method allows you to execute the batch file with the required privileges.
 


Solution
Back
Top