Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Lowercase letters forced by RENAME?
Message
From
29/11/2000 16:27:49
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00446557
Message ID:
00447040
Views:
11
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform