Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rename or change extension of all files in a folder
#3
simpler method Enumerate the folder change the extension and rename
Code:
Copy      Help
Dir d
foreach(d "D:\Harvest\02_GVP_IVRIntelPiloto (Piloto)\PGVITPL.19.04.10.1718 - Copy\*.*" FE_Dir)
,str path=d.FullPath
,str fName=d.FileName
,fName.replacerx("\..+" "")
,fName+ ".asp"
,FileRename(path fName)


Messages In This Thread
RE: Rename or change extension of all files in a folder - by Kevin - 05-01-2021, 04:15 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)