I have written a script that will in turn write a .bat file to execute some commands that can't be completed within Macro Scheduler code. For this to be completed though, the .bat needs to be run as admin.
Code: Select all
Writeln>%TEMP_DIR%msfix.bat,ICACLS "C:\Program Files\MJT Net Ltd" /GRANT USERS:(CI)(OI)F
Writeln>%TEMP_DIR%msfix.bat,TASKKILL /F /IM msched.exe
Writeln>%TEMP_DIR%msfix.bat,pause
ExecuteFile>%TEMP_DIR%msfix.bat
Hope this all makes sense!

Thanks in advance,
Dominic Fichera
Alternatively, are there any native MS commands which will grant folder permissions without having to run the whole macro/.exe as admin? Trying to streamline
