|
Ahhh okay, i think i get it. Thanks Glenn and Gargoyle!. I am still very "noob" in all ways programming! That does make sense - my perception of the '?' character was to tell kix32.exe to 'not execute this line as code, but output it'. Thanks for the clarification. In future i'll carrige return after a line instead of before it.
I was thinking that simply putting text in quotation marks would result in some sort of syntax error.
I've taken Gargoyle's advice on the splash screen and instead, wrapped it into a large 'If $enablelogging = 1 [splash screen] ENDIF'.
I think i'll leave the switch at the top as the primary means of enabling logging, due to it reletivly speaking, is easier to explain to an onsite tech who has absolutly no programming knowledge to change an obvious character (due to comments) in a script rather than debugging the script and feeding the value for the variable in.
I'm not too concerned with the switch effecting everyone who logs on - due to it only really piping output to a text file, it may take an extra... 2 seconds over the usual?
Attempting to code it in a 'troubleshooting for dummies' style :S.
Thanks
Edited by lukeod (2008-02-21 01:42 AM)
|