Batch Help

Atrye

Junior Member
Nov 26, 2004
14
0
0
I'd like to create a batch file that will open Notepad and insert the current data/time automatically in Windows XP.

I've already figured out that the line "start /MAX notepad" will start notepad in a maximized window, but I can't figure out how to get the current date/time to go in automatically.

I know that pressing F5 in the program will insert it. Is there a way to make this happen automatically?
 

Atrye

Junior Member
Nov 26, 2004
14
0
0
Personally, I think it's perfectly easy to run notepad with it's own shortcut and then press F5.

But this is for a class, and I'm supposed to use forums and web pages to answer this question. There must be a way to do it, but I can't figure it out...
 

skace

Lifer
Jan 23, 2001
14,488
7
81
date /t > c:\blah.txt
time /t >> c:\blah.txt
start notepad.exe c:\blah.txt

hopefully my start line is right.