If Exist "\\10.4.1.22\sysvol\corp.ubiquitygs.com\scripts\Logons\%username%.txt" goto notlogon echo %username% logged in from %computername% > \\10.4.1.22\sysvol\corp.ubiquitygs.com\scripts\Logons\%username%.txt echo %username% logged in from %computername% >