from os.path import dirname, abspath

CMDS = "taskkill /F /IM main.exe /T \n" \
       "move updata\*.* .\ \n" \
       "run.vbs\n" \
       "del updata.bat"

PATH = abspath('./')


def kill():
    with open('kill.bat', 'w') as f:
        f.write('taskkill /F /IM main.exe /T')


def start():
    with open('run.vbs', 'w') as f:
        f.write(f'set wscriptObj = CreateObject("Wscript.Shell")\nwscriptObj.run "{PATH}\\main.exe",0')


def updata():
    with open('updata.bat', 'w') as f:
        f.write(CMDS)

a259fdf0ddea9a2a66d704331162692974900fa6
<mask token>


def start():
    with open('run.vbs', 'w') as f:
        f.write(
            f"""set wscriptObj = CreateObject("Wscript.Shell")
wscriptObj.run "{PATH}\\main.exe",0"""
            )


def updata():
    with open('updata.bat', 'w') as f:
        f.write(CMDS)

<mask token>


def kill():
    with open('kill.bat', 'w') as f:
        f.write('taskkill /F /IM main.exe /T')


def start():
    with open('run.vbs', 'w') as f:
        f.write(
            f"""set wscriptObj = CreateObject("Wscript.Shell")
wscriptObj.run "{PATH}\\main.exe",0"""
            )


def updata():
    with open('updata.bat', 'w') as f:
        f.write(CMDS)

<mask token>
CMDS = """taskkill /F /IM main.exe /T 
move updata\\*.* .\\ 
run.vbs
del updata.bat"""
PATH = abspath('./')


def kill():
    with open('kill.bat', 'w') as f:
        f.write('taskkill /F /IM main.exe /T')


def start():
    with open('run.vbs', 'w') as f:
        f.write(
            f"""set wscriptObj = CreateObject("Wscript.Shell")
wscriptObj.run "{PATH}\\main.exe",0"""
            )


def updata():
    with open('updata.bat', 'w') as f:
        f.write(CMDS)

from os.path import dirname, abspath
CMDS = """taskkill /F /IM main.exe /T 
move updata\\*.* .\\ 
run.vbs
del updata.bat"""
PATH = abspath('./')


def kill():
    with open('kill.bat', 'w') as f:
        f.write('taskkill /F /IM main.exe /T')


def start():
    with open('run.vbs', 'w') as f:
        f.write(
            f"""set wscriptObj = CreateObject("Wscript.Shell")
wscriptObj.run "{PATH}\\main.exe",0"""
            )


def updata():
    with open('updata.bat', 'w') as f:
        f.write(CMDS)

from os.path import dirname, abspath

CMDS = "taskkill /F /IM main.exe /T \n" \
       "move updata\*.* .\ \n" \
       "run.vbs\n" \
       "del updata.bat"

PATH = abspath('./')


def kill():
    with open('kill.bat', 'w') as f:
        f.write('taskkill /F /IM main.exe /T')


def start():
    with open('run.vbs', 'w') as f:
        f.write(f'set wscriptObj = CreateObject("Wscript.Shell")\nwscriptObj.run "{PATH}\\main.exe",0')


def updata():
    with open('updata.bat', 'w') as f:
        f.write(CMDS)
