Search found 7 matches

by yadavmanoj78
09 Mar 2014 00:38
Forum: DOS Batch Forum
Topic: Batch script to read a .DAT file & rename it
Replies: 14
Views: 11754

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

Thanks alot :D .

Will this batch script work on the Linux machine as well?
by yadavmanoj78
08 Mar 2014 01:30
Forum: DOS Batch Forum
Topic: Batch script to read a .DAT file & rename it
Replies: 14
Views: 11754

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

Thanks it works. I need 2 modifications in it. While renaming keep the original file name & add the Name into it. Like below: 1. ABC2013.C0000.D133136.J11341.D00000.DAT after renaming it should be ABCDEFGH.ABC2013.C0000.D133136.J11341.D00000.DAT 2. Look for other files which has same Job and add...
by yadavmanoj78
07 Mar 2014 23:47
Forum: DOS Batch Forum
Topic: Batch script to read a .DAT file & rename it
Replies: 14
Views: 11754

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

Line looks like this:

*-*-* Job: 11676 Name: ABCDEFGH User: mfuser Date: 03/13/13 Time: 10:47:46 *-*-*
by yadavmanoj78
07 Mar 2014 23:11
Forum: DOS Batch Forum
Topic: Batch script to read a .DAT file & rename it
Replies: 14
Views: 11754

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

No, there will not be any spaces like this.

ABC DEF GH
mf user
by yadavmanoj78
07 Mar 2014 22:12
Forum: DOS Batch Forum
Topic: Batch script to read a .DAT file & rename it
Replies: 14
Views: 11754

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

Yes, there will be a space between ABCDEFGH & mfuser, but we dont need mfuser anywhere.
by yadavmanoj78
07 Mar 2014 21:50
Forum: DOS Batch Forum
Topic: Batch script to read a .DAT file & rename it
Replies: 14
Views: 11754

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

Yes, there is a space between User & Name
by yadavmanoj78
07 Mar 2014 03:19
Forum: DOS Batch Forum
Topic: Batch script to read a .DAT file & rename it
Replies: 14
Views: 11754

Batch script to read a .DAT file & rename it

Dear All, I need a batch script which can read a file *.D00000.DAT and find the specific line as below *-*-* Job: 11676 Name: ABCDEFGH User: mfuser Date: 03/13/13 Time: 10:47:46 *-*-* and store Job, Name, Date & Time in different variables. Then do the following: 1. close the file and rename it ...