Read all CSVs in a FLDR then move&rename those CSVs to anotherFL

Closed
vjeter Posts 1 Registration date Tuesday September 10, 2013 Status Member Last seen September 10, 2013 - Sep 10, 2013 at 11:21 PM
GeorgeRattel Posts 67 Registration date Monday September 29, 2008 Status Member Last seen September 15, 2013 - Sep 11, 2013 at 03:33 AM
I need to write a batch script that will read all the documents in a folder (Folder A ). Folder A has many different types of documents in it and then move all of those CSVs to another folder (Folder B
I do not know the name of the CSVs in folder A.
I've created a FOR stmt in my script and it loops thru all the docs in the folder but I don't know how to capture the name of the .csv I am moving.
Related:

2 responses

GeorgeRattel Posts 67 Registration date Monday September 29, 2008 Status Member Last seen September 15, 2013 11
Sep 11, 2013 at 03:13 AM
try *.csv, * before the .csv, for when used in a filename argument the asterisk wildcard matches any number or any characters;) so you don't care what the file is called, as long as you know the extension:D
0
GeorgeRattel Posts 67 Registration date Monday September 29, 2008 Status Member Last seen September 15, 2013 11
Sep 11, 2013 at 03:33 AM
Try *.csv, * before the .csv, for when used in a filename argument the asterisk wildcard matches any number or any characters;) so you don't care what the file is called, as long as you know the extension:D
0