Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best way to rename files
Message
 
To
26/09/2003 15:25:06
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00832800
Message ID:
00832817
Views:
18
>>If the WSH was an option, that's the way I'd go.
>
>Anyone has an exemple about that? I don't use that much and wouldn't be sure on the proper approach for that.

Something like this
oFSO = CREATEOBJECT("Scripting.FileSystemObject")
* lcfolder is the fully qualified 
* directory name
oFolder = oFSO.GetFolder(lcfolder)
FOR EACH oFile IN oFolder.Files
  oFile.Name = FORCEEXT(JUSTSTEM(oFile.Name) + TTOC(oFile.DateLastModified), JUSTEXT(oFile.Name)) 
NEXT
if I understand correctly.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform