Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Lowercase letters forced by RENAME?
Message
 
 
À
28/11/2000 23:43:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00446557
Message ID:
00446936
Vues:
8
>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?

David,

You may use this syntax:
oFSO = CREATEOBJECT("Scripting.FileSystemObject")
oFSO.MoveFile("d:\mtd\mtd1.zip", "d:\mtd\MtdW.zip")
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform