There is 2 alternatives:
1- Convert your batch script to exe and make exe run as administrator:
2- Add another batch script to open your batch script as administrator:
For example:
ExecuteDBBlank.bat will execute DBBlankExecution.bat as administrator but it requires you to enter password administrator:
ExecuteDBBlank.bat
runas /noprofile /user:PC_NAME\Administrator C:\Users\COUK\Desktop\DBBlankExecution.bat
Where PC_NAME is your PC name and your main execution batch file can be located at any directory please update yours accordingly.
Where PC_NAME is your PC name and your main execution batch file can be located at any directory please update yours accordingly.
If we click on ExecuteDBBlank.bat it will ask you for Administrator password if you enter correctly DBBlankExecution.bat will be executed:
0 comments:
Post a Comment
Thanks for commenting...