Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: .LOG file logon
logline=strcat(userid," ",scrpname) gosub logit ... exit :logit ; contention prone but easy script xxx=FileOpen("X:\stuff\script.log","APPEND") FileWrite(xxx,logline) FileClose(xxx) return
:logit ; bulletproof script xxx=0 while xxx==0 ...ErrorMode(@off) ...xxx=FileOpen("X:\stuff\script.log","APPEND") ...ErrorMode(@cancel) ...if xxx==0 then TimeDelay(1) endwhile FileWrite(xxx,logline) FileClose(xxx) returnWARNING: Using ErrorMode and very very very easily turn a 5 minute debugging project into a 3 week debugging project. Never use it to protect an control (IF WHILE FOR ETC) statement. Read ALL about it in the manual before ever consider using it. Never suppress more than one line of cde at a time...
Article ID: W13519
Filename: Write LOG File During Logon.txt
File Created: 1999:04:15:16:54:34
Last Updated: 1999:04:15:16:54:34