Listing 1: Login.bat :: BEGIN CALLOUT A If Exist \\rafetpc\logons\%username%.txt Goto notlogon Echo %username% logged in from %computername% > \\rafetpc\logons\%username%.txt Echo %username% logged in from %computername% > \\rafetpc\logons\%computername%.txt :: END CALLOUT A Goto end :notlogon Logoff :end