Skip to content
Permalink
Browse files
Add files via upload
  • Loading branch information
almeidagaj committed Nov 30, 2021
1 parent c01b0f2 commit b398ecf07267a92876332fae562c9eddb41878a9
Showing 1 changed file with 10 additions and 10 deletions.
@@ -91,16 +91,6 @@ def menu():
print("What Method would you like to use")
option = (input("\n1. Admin CMD\n2. Method 2\n3. Method 3\n"))
if option == "1":
import os
import sys
import win32com.shell.shell as shell
ASADMIN = 'asadmin'

if sys.argv[-1] != ASADMIN:
script = os.path.abspath(sys.argv[0])
params = ' '.join([script] + sys.argv[1:] + [ASADMIN])
shell.ShellExecuteEx(lpVerb='runas', lpFile=sys.executable, lpParameters=params)
sys.exit(0)
print("Do you want to quit or return to menu?")
option = (input("y or n\n"))
if option == "y":
@@ -215,6 +205,16 @@ def menu():
print("What Method would you like to use")
option = (input("\n1. Method 1\n2. Method 2\n3. Method 3\n"))
if option == "1":
import os
import sys
import win32com.shell.shell as shell
ASADMIN = 'asadmin'

if sys.argv[-1] != ASADMIN:
script = os.path.abspath(sys.argv[0])
params = ' '.join([script] + sys.argv[1:] + [ASADMIN])
shell.ShellExecuteEx(lpVerb='runas', lpFile=sys.executable, lpParameters=params)
sys.exit(0)
print("Do you want to quit or return to menu?")
option = (input("y or n\n"))
if option == "y":

0 comments on commit b398ecf

Please sign in to comment.