editing a txt file using cdm

April 10, 2009 at 03:11:42
Specs: Windows 2000

I'm looking for a simple batch file which will edit - delete a part of text a file, lets say arhiv.dat. With a command %date& > arhive.dat I get a file with system date, with a writen name of the day and numbers of the date. What command could I use, to delete the day name, so only numbers would stay.


See More: editing a txt file using cdm

Report •

April 10, 2009 at 04:34:06
If your date format is "day nn/nn/nnnn" create the date in the file using:

Echo %date:~-10% > arhiv.dat

Report •

April 10, 2009 at 05:03:57
It gives the following error:

'10.04.2009' is not recognized as an internal or external command, operable program or batch file.

Am I doing something wrong?

Report •

April 10, 2009 at 05:22:45
Code is working perfectly here, what are you doing?

Report •

Related Solutions

April 10, 2009 at 05:29:32
Sorry, my bad. I left out one little sign ~, and now it works perfect.

Thank you, saved me!!!

Report •

April 10, 2009 at 05:31:53
Thanks for coming back to report your success..

Have a nice weekend.


Report •

Ask Question