-
Notifications
You must be signed in to change notification settings - Fork 121
/
LiveSiteMode.ahk
36 lines (28 loc) · 1.03 KB
/
LiveSiteMode.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
#include FcnLib.ahk
;IniWrite, true, C:\Dropbox\ahkConfig.ini, DebugAgainAhk, LiveSiteMode
;if FileExist("C:\Dropbox\ahkConfig.ini")
;debug("yup")
;IniRead, LiveSiteMode, C:\Dropbox\ahkConfig.ini, DebugAgainAhk, LiveSiteMode
;LiveSiteMode := LiveSiteMode == "true"
;if LiveSiteMode
;Run, LiveDbWarning.ahk
bool:=prompt("Specify whether LiveSiteMode should be true or false:")
;IniWrite, %bool%, C:\Dropbox\ahkConfig.ini, DebugAgainAhk, LiveSiteMode
if (bool == "true")
{
FileCopy, C:\code\bench\fl_bench.json.remote, C:\code\bench\fl_bench.json, 1
FileCopy, C:\code\epms\cgi\epms_LIVE.json, C:\code\epms\cgi\epms_local.json, 1
message=LIVE SITE MODE
}
else
{
FileCopy, C:\code\bench\fl_bench.json.dev, C:\code\bench\fl_bench.json, 1
FileCopy, C:\code\epms\cgi\epms_mydev.json, C:\code\epms\cgi\epms_local.json, 1
message=dev mode
}
file=C:\Dropbox\Public\remotewidget-livesitemode.txt
FileDelete, %file%
FileAppend, %message%`n, %file%
;debugBool(0=="0")
;debugBool(1=="1")
ExitApp