saladoil
asked on
split file path and names into "fields" and create csv file with list
I am looking to do a directory listing of files and split up the path and file names into fields and create a csv file to import into a document mangement system - so from this dir list:
d:\ap\pcard\fax\mary_1234. tif
d:\ap\pcard\fax\joe_1342.t if
d:\ap\pcard\email\john_246 8.pdf
d:\ap\pcard\scan\jill_2222 .pdf
I would want this file:
date, source, name, acct#, file path
2/17/2011,fax,mary,1234,d: \ap\pcard\ fax\mary_1 234.tif
2/17/2011,fax,joe,1342,d:\ ap\pcard\f ax\joe_134 2.tif
2/17/2011,email,john,2468, d:\ap\pcar d\email\jo hn_2468.pd f
etc
--
I have parts of this figured out but can't seem to put it all together.
d:\ap\pcard\fax\mary_1234.
d:\ap\pcard\fax\joe_1342.t
d:\ap\pcard\email\john_246
d:\ap\pcard\scan\jill_2222
I would want this file:
date, source, name, acct#, file path
2/17/2011,fax,mary,1234,d:
2/17/2011,fax,joe,1342,d:\
2/17/2011,email,john,2468,
etc
--
I have parts of this figured out but can't seem to put it all together.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks!