Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rename file using parameters
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00591399
Message ID:
00591415
Vues:
29
>Simply get a object reference to the file and change its Name property like this
oFSO = CREATEOBJECT("Scripting.FileSystemObject")
>oFile = oFSO.GetFile((GETFILE("*")))
>? oFile.Name
>oFile.Name = FORCEEXT(oFile.Name, 'DBF')
>? oFile.Name
Naturally, in VBScript you'd get the object references using Set.
>
>Why would you need two parameters?

I need to call this code with the old file name and the new file name. In fact, I need to create a file with a long name in Fox Pro 2.6, so my idea was to write a copy file tool that takes the two parameters.
Christian Isberner
Software Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform