dir /b *.csv >go.bat
Name "original file" as "new file"
WAVCounter = 1
WAVFile = Dir$(DirName & "\*.WAV")
Do While WAVFile <> ""
ReDim Preserve WAVListArray(WAVCounter)
WAVListArray(WAVCounter) = WAVFile
WAVFile = Dir$
WAVCounter = WAVCounter + 1
Loop
For X = 1 To UBound(WAVListArray)
Name WavListArray as NewFileName
Next
Hi Dan a little bit new to bat files can you show me an example
rename "file1.csv" "newfilename.csv"
rename "file2.csv" "another new name.csv"
rename "third file.csv" "yet another new name.csv"
adde_20061123_014500.csv
adde_20061130_014500.csv
adde_20061207_014501.csv
adde_20061214_014501.csv
adde_20061221_014500.csv
adde_20061228_014501.csv
MyNewFileName.csv
SomethingElse.csv
blah blah blah.csv
MyNewFileName2.csv
MyNewFileName3.csv
blah blah blah2.csv
="rename """ & A1 & """ """ & B1 & """"
rename "adde_20061123_014500.csv" "MyNewFileName.csv"
rename "adde_20061130_014500.csv" "SomethingElse.csv"
rename "adde_20061207_014501.csv" "blah blah blah.csv"
rename "adde_20061214_014501.csv" "MyNewFileName2.csv"
rename "adde_20061221_014500.csv" "MyNewFileName3.csv"
rename "adde_20061228_014501.csv" "blah blah blah2.csv"