-
Notifications
You must be signed in to change notification settings - Fork 0
/
cmdprompt.ahk
61 lines (38 loc) · 914 Bytes
/
cmdprompt.ahk
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
43
44
45
46
47
48
/*
*********************************************************************************
*
* cmdprompt.ahk
*
* all files are UTF-8 no BOM encoded
*
* Version -> appVersion
*
* Copyright (c) 2021 jvr.de. All rights reserved.
*
*
*********************************************************************************
*/
/*
*********************************************************************************
*
* GNU GENERAL PUBLIC LICENSE
*
* A copy is included in the file "license.txt"
*
*********************************************************************************
*/
; AutoHotkey v1.1+
#Warn
#SingleInstance force
run, %comspec% /c cd > cd.tmp,, Min
sleep, 2000
curDir := ""
fileReadLine, curDir, cd.tmp, 1
sleep, 1000
run, %comspec% /k, curDir
sleep, 1000
fileDelete, %curDir%\cd.tmp
if (Errorlevel)
msgbox, Failed to delete the temporary file "cd.tmp"
sleep, 500
exitApp