1.

Solve : Batch script to read a .DAT file & rename it?

Answer»

I need a batch script which can read a file *.D00000.DAT and find the specific line as below

*-*-* Job: 1111 Name: ABCDEFGH User: ABCXYZ DATE: 03/13/14 Time: 11:50:00 *-*-*

and store Job, Name, Date & Time in DIFFERENT variables.

Then do the following:

1. close the file and rename it with "Name".
2. Create a folder and name it with Job-Name-Date-Time
3. Move the renamed file into the folder
4. repeat the process for next *.D00000.DAT fileWhat have you tried?I am new to Batch script, so I need some startup to go ahead.This is multi POSTED http://www.dostips.com/forum/viewtopic.php?f=3&t=5430



Discussion

No Comment Found