Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rename or change extension of all files in a folder
#2
Code:
Copy      Help
lpstr s = dir(" D:\Harvest\02_GVP_IVRIntelPiloto (Piloto)\PGVITPL.19.04.10.1718 - Copy\*" 0)
str rawFile resultFile
int i

out
rep
    if(s = 0) break
    rawFile.format(" D:\Harvest\02_GVP_IVRIntelPiloto (Piloto)\PGVITPL.19.04.10.1718 - Copy\%s" s)
    i = find(rawFile ".")
    resultFile.format("%s.asp" rawFile.remove(i))
    rawFile.format(" D:\Harvest\02_GVP_IVRIntelPiloto (Piloto)\PGVITPL.19.04.10.1718 - Copy\%s" s)
    if(rawFile != resultFile)
        ren- rawFile resultFile
    s = dir

Maybe you must rename folder name without "."


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

Forum Jump:


Users browsing this thread: 1 Guest(s)