Hi all,
I'm running a DOS BATCH logon script.
I want to record when everyone logs on to the server. By doing this I need to use the following line:
This code creates and/or copies a log file with the date as it's name. The problem I have is the %date% variable returns the short date which has '/' which you can't use in a file name.
I need a variable for the long date format so that I can use that as the file name.
Any help would be most welcomed.
Thanks,
Barry
ICT Network Administrator
IT Services Manager
I'm running a DOS BATCH logon script.
I want to record when everyone logs on to the server. By doing this I need to use the following line:
Code:
echo IN - %time% - %username% - %COMPUTERNAME% >>"m:\%date%.log"
I need a variable for the long date format so that I can use that as the file name.
Any help would be most welcomed.
Thanks,
Barry
ICT Network Administrator
IT Services Manager