New
#1
How to override UAC for a batch file?
Hey guys,
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:
Cheers for the help.Code:@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"
-Burgo855