-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelaunch.au3
42 lines (36 loc) · 1.32 KB
/
relaunch.au3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Outfile=C:\Users\whiggs\OneDrive\always script\relaunch.exe
#AutoIt3Wrapper_Res_Language=1033
#AutoIt3Wrapper_Res_requestedExecutionLevel=highestAvailable
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
; *** Start added by AutoIt3Wrapper ***
#include <FileConstants.au3>
; *** End added by AutoIt3Wrapper ***
#cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.15.0 (Beta)
Author: myName
Script Function:
Template AutoIt script.
#ce ----------------------------------------------------------------------------
; Script Start - Add your code below here
#include <Constants.au3>
Sleep (1000)
#cs
$again = FileOpen ( @AppDataDir & "\filler\hold.txt" )
FileSetPos ( $again, 0, $FILE_BEGIN )
$loc = FileRead ( $again )
FileClose ( $again )
If StringRight ( $loc, 1 ) == "1" Then
$loc = StringTrimRight ( $loc, 1 )
Run ( @ComSpec & " /c " & $loc, "", @SW_HIDE )
ElseIf StringRight ( $loc, 1 ) == "2" Then
$loc = StringTrimRight ( $loc, 1 )
$dss = StringReplace ( $loc, "passwnew.exe", "passw.exe" )
FileMove ( $loc, $dss )
Run ( @ComSpec & " /c " & $dss, "", @SW_HIDE )
Else
EndIf
#ce
Run ( @ComSpec & ' /c "' & $CmdLine[1] & '"', "", @SW_HIDE )
;MsgBox($MB_OK,"path",$CmdLine[1])
;ShellExecute (