Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Lowercase letters forced by RENAME?
Message
De
29/11/2000 16:27:49
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00446557
Message ID:
00447040
Vues:
10
>>The RENAME command seems to force file names to have lower case letters.
>>
>>The following snippet
>>
>>
>>cname1 = getfile()           &&select a file
>>cname2 = justpath(cname1) + '\BIGLETTERS.' + justext(cname1)
>>?cname2                            &&yep!  They're all caps!
>>rename '&cname1' to '&cname2'
>>getfile()               &&reveals new filename is lowercase
>>
>>
>>Using the alternative:
>>
>>rename (cname1) to (cname2)
>>
>>does not help.
>>
>>It's not a really big deal, but being a control freak, I want the damn thing to do what I tell it to do (damn it!).
>>
>>What gives?
>
>Have you tried:
>MoveFiles – MoveFiles has two uses: moving and renaming. ...

Useful information, but in this case my main interest is explicit control of
the case of alphabetic characters in a file name. I'll try Movefiles to see
if it gives me this control.

BTW, apparently RENAME can accept wildcards in the filenames also. Not sure if
it's as flexible as MoveFiles, but it does seem to have the capability.
"The Iron Fish: The water is cold...but the fish don't mind"
...Jay Jenks, boyhood chum
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform