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

Closed
vjeter Posts 1 Registration date Tuesday 10 September 2013 Status Member Last seen 10 September 2013 - 10 Sep 2013 à 23:21
GeorgeRattel Posts 67 Registration date Monday 29 September 2008 Status Member Last seen 15 September 2013 - 11 Sep 2013 à 03:33
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 29 September 2008 Status Member Last seen 15 September 2013 11
11 Sep 2013 à 03:13
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
GeorgeRattel Posts 67 Registration date Monday 29 September 2008 Status Member Last seen 15 September 2013 11
11 Sep 2013 à 03:33
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