I dont know if anybody else has a use for this, and I am sure you can clean it up tremendously, but I use this script prior to compiling and leaving at a customer's location. This allows me to run the exe and pass the parameters /RemindMePlease=YesPlease and see the original script.
Code: Select all
Let>APP_TITLE=Remind Me Please
Let>INPUT_BROWSE=1
Input>origscript_,Which script file do you want to modify for remind me,
Let>tmpfile_=%TEMP_DIR%\remindme.txt
Let>remindfile_=%TEMP_DIR%\remindfile_.txt
IfFileExists>%tmpfile_%
DeleteFile>%tmpfile_%
EndIf>
ReadFile>%origscript_%,entireorigscript_
WriteLn>%tmpfile_%,,If>%RemindMePlease%=YesPlease
WriteLn>%tmpfile_%,,GoSub>RemindMe
WriteLn>%tmpfile_%,,EndIf
WriteLn>%tmpfile_%,,%entireorigscript_%
WriteLn>%tmpfile_%,,SRT>RemindMe
Let>lineno_=1
Label>ReadNextLine_
ReadLn>%origscript_%,%lineno_%,oscurrentline_
If>%oscurrentline_%=##EOF##
WriteLn>%tmpfile_%,,ExecuteFile>%remindfile_%,
WriteLn>%tmpfile_%,,MDL>Reminder Complete
WriteLn>%tmpfile_%,,IfFileExists>%remindfile_%
WriteLn>%tmpfile_%,,DeleteFile>%remindfile_%
WriteLn>%tmpfile_%,,EndIf>
WriteLn>%tmpfile_%,,END>RemindMe
ExecuteFile>%tmpfile_%,
Else
WriteLn>%tmpfile_%,,WriteLn>%remindfile_%,,%oscurrentline_%
Let>lineno_=%lineno_%+1
Goto>ReadNextLine_
EndIf