New
#60
The following is my last-ditch effort. I will give up if it fails.
Code:Set "【Path】=runas /user:XXX\Administrator /savecred C:\ProgramData\_SERVICE\Create_Restore_Point\Create_Restore_Point.cmd"
Change the folder name fromCreate Restore Point
toCreate_Restore_Point
Change the file name fromCreate Restore Point.cmd
toCreate_Restore_Point.cmd
The spaces in the file path could have caused problems.
You are most welcome!
Download: "Add [Create a restore point] into the context menu.bat"
@Brink, the above batch script will add "Create a restore point" into the context menu and create a scheduled task with highest privileges, so that no UAC prompt will pop up. Would you consider adding it into this tutorial?
I ran your script several times, but nothing has been added into my context menu. What's wrong?
@Matthew Wai,
I didn't see an undo option in the .bat file while editing it to make it easy to remove the context menu and task.
If I didn't miss it, would that be possible to add to the .bat?
(1) Add [Create a restore point] into the context menu.bat
(2) Remove [Create a restore point] from the context menu.bat
@Brink, (2) will remove the item and task created by (1). The two scripts can be combined into one if you want.