|11 Aug 2013||#1|
| || |
How to override UAC for a batch file?
I am trying to make a simple batch file, the idea behind it is i run the batch file and save my settings/configuration settings of my game to a folder called Backup with batch.
Here is the issues:
* The game is in program files(x86) - I wish for it to stay here.
* Cannot create a folder called "Backup" due to User Account Control(UAC) - I don't want to turn off UAC either.
* I cannot use hard-coded paths as i am making the batch for my mates too - But the game uses same configuration file-names and same sub-directories.
So my question is, is their a way i can override UAC or turn UAC off to do this batch process and then re-enable UAC?
Can someone post some ideas? Here is the current batch:
@echo off color 34 Echo This will make a backup of all the cfg files Echo in a Backup directory to the root of the game: @pause MD "Backup/etpro" MD "Backup/etmain" MD "Backup/etpub" XCOPY "etmain\*.cfg" "Backup\etmain" XCOPY "etpro\*.cfg" "Backup\etpro" XCOPY "etpub\*.cfg" "Backup\etpub"
|My System Specs|
|Similar help and support threads for2: How to override UAC for a batch file?|
|How to run a batch file at logoff & some batch scripting help please||Backup and Restore|
|Batch file syntax file||Performance & Maintenance|
|How to copy a file from 1 pc to another pc in network using batch file||General Discussion|
|Batch File that grabs file names from folder to insert into batch file||General Discussion|
|Help required creating batch file to read .csv file||General Discussion|
|batch file open file for program in the startup folder||General Discussion|
|How to create a batch file that will move files based on the file type||General Discussion|
|Our Sites ||Site Links ||About Us ||Find Us |
© Designer Media Ltd
All times are GMT -5. The time now is 02:08 PM.