Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fullpath() returns uppercase
Message
 
 
À
29/09/2019 09:56:30
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01671252
Message ID:
01671254
Vues:
80
Check comments on https://www.berezniker.com/content/pages/visual-foxpro/send-email-cdo-2000
Gene Wirchenko suggested
tryfn=justpath(fullpath(filename))+"\"+justfname(filename)
>Nitpicking a little... In my routine which moves the raw pictures from wherever they were found (memory card, temp folder, usb connected phone etc) into appropriate folder, the final part was
>
>
			lcToFile=Fullpath(Forcepath(lcToFile,lcToDir))
>			Rename (lcFromFile) To (lcToFile)
>...which turned the whole content of lcToFile into uppercase, regardless of the case in lcToFile,lcToDir. Now since lcToDir is mostly digits (it's date based), this workaround works:
>
			lcToFile=Forcepath(lcToFile,Fullpath(lcToDir))
>			Rename (lcFromFile) To (lcToFile)
>- now only the folder is uppercase, the filename remains as it was, which is what I wanted. Still, is there a way to have FullPath() return the path as it is on disk, not uppercased? Is there an alternative? Scripting host would work as well.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform