Hello all,
I'm in need of some batch script help. I need to create a formatted text file that looks like this:
and so on... with the left column being the file name, the right the file size in KB (only they're better aligned).
I've written a couple light-duty batch scripts before so I'm mildly familiar with them, but I don't know how to go about the formatting. I can get all the information I need using DIR /S>list.txt. This, however, gives me more information than I need so even being able to remove extraneous lines of text would be a good start for us.
Any help would be very appreciated! Thanks!
dylan
I'm in need of some batch script help. I need to create a formatted text file that looks like this:
Code:
ROOT
l_comm_info.e00 3,939
l_mt1_lomc.e00 7,985
ROOT/SUBFOLDER1/
l_stn_start.e00 2,677
l_wtr_nm.e00 8,845
study_info.e00 4,608
ROOT/SUBFOLDER2/
s_base_index.e00 6,923
s_bfe.e00 64,696
s_firm_pan.e00 17,239
and so on... with the left column being the file name, the right the file size in KB (only they're better aligned).
I've written a couple light-duty batch scripts before so I'm mildly familiar with them, but I don't know how to go about the formatting. I can get all the information I need using DIR /S>list.txt. This, however, gives me more information than I need so even being able to remove extraneous lines of text would be a good start for us.
Any help would be very appreciated! Thanks!
dylan