Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Lowercase letters forced by RENAME?
Message
 
 
To
28/11/2000 23:43:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00446557
Message ID:
00446936
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?

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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform