Batch script notes: set system date, launch an application, run as admin #
- Set the date to August 24, 1995:
DATE 8/24/1995
- Launch Notepad:
START C:\Windows\NOTEPAD.EXE
- Run batch script as administrator under Vista and higher (to prevent "A required privilege is not held by the client." error when setting the date):
- Create a shortcut to the batch script ("Run this program as an administrator" is disabled for batch scripts)
- Right click the shortcut > Properties
- Click Shortcut > Advanced...
- Check "Run as administrator" > OK > OK
- Use the shortcut to launch the script
/windows | Sep 07, 2014
Subscribe or visit the archives.