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

I understand that, but you don't have to run it from DOS. You could simply run it from the Run menu item in Windows.
George

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

Click here to load this message in the networking platform