Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best way to rename files
Message
From
26/09/2003 16:07:24
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00832800
Message ID:
00832828
Views:
28
>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.

Would that approach would from a VB script file that we would be able to execute from DOS? The reason I am asking this is because I want to avoid to install the VFP run time.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform