|
Answer» Hey everyone!
Does ANYONE know how to create a FLAG file in a directory with the HOSTNAME to track who runs the BATCH file? Also would it be just as easy to add the username and dat as well? ThanksUse the set COMMAND to find out what variables are available with your OS. Use them on an echo statement in your batch file.
For example, on my system I could use:
echo %userdomain% %username% %date% >> flagfile.ext
Hope this helps. You DA MAN!!
|