I have a simple logoff batch script that looks like this:
echo Last Logoff for %Username% was on: %date% at %time% > \\Server\Apps\Logs\Logoff\%Username%.txt
I need to add the date and the words "logoff" onto the filename so it does not overwrite the last file.
the output would look something like:
I tried using using:
it almost works, but the file looks like:
and the file doesnt have .txt
any help is greatly appreciated