change all files names to lower case.

new topic     » topic index » view thread      » older message » newer message

Friends, why the code below does not work?

The intention is to change all files names to lower case.

But nothing is renamed. How should I do this?

 ff= dir(dd)  
 if atom(ff) then 
  ff= message_box("Folder " & dd &"\nNot found","","") 
  return 
 end if 
 for i=3 to length(ff) do 
  ll=dd&lower(ff[i][1]) 
  mm=moveFile(dd&ff[i][1],ll) 
  if mm=w32False then 
   xx= message_box("The file \n" & dd & ff[i][1]&"\n has not been renamed to \n"&ll,"","") 
  end if 
 end for 

Thanks in advance

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu