Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP7 Rename Command Results in lower case filename
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00793171
Message ID:
00793227
Vues:
43
Yuri,

Sorry, one more question:
Will the rename that you have below work in a VPF 7 .exe running on W98?

>Then you need to work with CopyFile function instead. The syntax is the same.
>As usual, you cannot copy the file into the very same directory.
>
>>Yuri,
>>
>>I would like to create a copy of the file.
>>Should I take the 'movefile' literally?
>>TIA.
>>
>>>It is how it works. Try this instead:
>>>
>>>DECLARE INTEGER MoveFile IN Win32API;
>>> STRING @lcoldname , STRING @lcnewname
>>>
>>>lcoldname = 'A.DBF'
>>>lcnewname = 'B.DBF'
>>>?MoveFile(@lcoldname, @lcnewname)#0
>>>
>>>clear dlls
>>>
>>>>I am renaming a file as in the code below, but the resulting filename that is stored on disk is lower case.
>>>>The O/S is XP PRO.
>>>>
>>>>local lcMacro
>>>>lcMacro = Upper("rename 'A.DBF' to 'B.DBF'")
>>>>wait window lcMacro && just to verify that files names are uppercase
>>>>&lcMacro
>>>>
>>>>TIA.
Regards,

Allan Coganovitch
allanc@proven-solutions.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform