Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Batch file - export current time
Name: minos Date: May 31, 2008 at 08:43:57 Pacific OS: XP Blackmoon CPU/Ram: 8g Product: AMD Custom
Comment:
I have created a batch file that administrates and monitors a network. I have reached around 2500+ lines of script. But now i am going over the program making afew adjustments.
When the user input his/her name it is exported to session.txt, i would like to export the time with the name to. i will show you a fragment of my current script.
-----
:loginuserpass1 set /p c=Enter your full name: echo %C% >> Session.txt echo time /t >> Session.txt if "%C%"=="quit" goto quit goto banner2
-----------------------
I attempted to export the time by inserting echo time /t >> Session.txt but this just add the words "time /t" to the file. I would like some help with the matter if at all possible. Thank you.
Summary: Razor2.3: Because 1/2/08 can be read as either the second day of January, or as the first day of February. No, I mean why haven't Microsoft decided on a specific, fixed, format for the variable %date%...
Summary: Hi, I have created batch file to run Ms Access's macro. At the beginning, it works fine. However after a while, it suddenly runs twice and now it runs four times. And since then, every batch file I ha...
Summary: I need to write a batch file that will look at the files in a specific folder, and copy the latest file (to the minute of possible) to a different directory. Does anyone know what to write in a Batch...