1.

Solve : Batch file to create a notepad file and change the date of it.?

Answer»

Hey i was looking up how to change the name of a file to a DATE in a batch which i have. however what I am trying to do is make a batch file that when run

1.opens notepad
2. imports a script into the open file
3 saves the file with the file name of the current date

unfortunately all I have is

for /f "tokens=1-5 delims=/ " %%d in ("%date%") do rename "New TEXT Document.txt" %%e-%%f-%%g.txt

which just takes a file with the new doc name and renames it with the current date.

I just WANT a script that opens the notepad edits it and i guess would have to close notepad saving changes then this would run.

Its honestly been a long time since I worked with batch files so any help is appreciated.I'd go with a macro created by JITBIT to do this the easy way.

http://www.jitbit.com/macrorecorder.aspx

This macro recorder, editor, and EXE compiler of routines makes it so easy to pass data to notepad.

Dave



Discussion

No Comment Found