Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rename
#1
Do you know other way to do this quicker...
20 files=20 seconds?

Code:
Copy      Help
str directorio
if(!BrowseForFolder(directorio)) ret
directorio+"\*"
Dir d; str filename sPath path nombre extension temp
foreach(d directorio FE_Dir)
,filename=d.FileName
,sPath=d.FileName(1)
,path.getpath(sPath)
,nombre.getfilename(sPath)
,extension.get(sPath findcr(sPath ".")+1)
,;out path
,;out nombre
,;out extension
,temp.from(path nombre "abc" "." extension)
,out temp
,ren* sPath temp
#2
forget it.

Code:
Copy      Help
str directorio
if(!BrowseForFolder(directorio)) ret
directorio+"\*"
Dir d; str filename sPath path nombre extension temp arr1 arr2
foreach(d directorio FE_Dir)
,filename=d.FileName
,sPath=d.FileName(1)
,arr1.formata("%s[]" sPath)
,path.getpath(sPath)
,nombre.getfilename(sPath)
,extension.get(sPath findcr(sPath ".")+1)
,;out path
,;out nombre
,;out extension
,temp.from(path nombre "abc" "." extension)
,arr2.formata("%s[]" temp)
,out temp
ren* arr1 arr2


Forum Jump:


Users browsing this thread: 3 Guest(s)