You can run a command prompt or any application as an administrator by right-clicking it and then clicking Run As Administrator. If you have a batch file that you need to always run as an administrator, follow these steps so it runs with the proper privileges every time:
1. In Explorer, right-click the batch file and then click Create Shortcut.
2. Rename the new shortcut to something useful, such as “filename-admin rights.bat”.
3. Right-click the new shortcut, and then click Properties.
2. On the Shortcut tab, click the Advanced button.
3. Select the Run as administrator checkbox.
4. Click OK twice.
Now, when you double-click the batch file, UAC will prompt you for administrative privileges. You can use a similar technique to always run the command prompt as administrator, or to always run an application as administrator.