Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best way to rename files
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00832800
Message ID:
00832831
Vues:
20
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform