1.

Solve : need help with a batch file that tells you last time you were on?

Answer»

hi.i have a LITTLE batch adventure game and there is a "info" screen.i want (if at all possible)it to display the time and date it was last used.i am new to this and will appreciate it if you could offer me an example code or tell me how to do it because i am TRYING to PRACTICE my skills.thanksMake your code create a txt file when it runs.

You can then get the timestamp of that file next time and which will show you the date and time.

Code: [Select]for %%a in ("file.txt") do echo %%~tathanks for the help but i think i figured it out. i just make it EXECUTE this code on the exit tab in my game and right after the 5 second timer it will print the time and date onto the .txtCode: [Select]echo PLay: %time% %date%>>gameplay.txt



Discussion

No Comment Found