' This application needs to be run with elevated permissions. Perform a test to see if user started the program
' with elevated permissions. If not, then relaunch the program with elevated permissions and close the
' original instance of the program.
Cmd$
= ">nul 2>&1 " + CHR$(34) + "%SYSTEMROOT%\system32\cacls.exe" + CHR$(34) + " " + CHR$(34) + "%SYSTEMROOT%\system32\config\system" + CHR$(34)
' We reach this point when the program is run elevated.
PRINT "The program is now running elevated."