Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rename a file long file name from lower to upper case
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00801645
Message ID:
01154268
Views:
25
It seems like there was a windows setting that would allow you to just use an upper() and it would respect the case of teh destination file.



>Try to copy file with CopyFile API #12708. It seems to respect destination file name case.
DECLARE INTEGER CopyFile IN KERNEL32.DLL ;
>   STRING SourceFileName, ;
>   STRING DestFileName, ;
>   INTEGER bFailIfExists
>IF CopyFile("orders.pdf", "ABCDEFGH-O.PDF", 0)  > 0
>  * File copied
>ELSE
>  * File isn't copied
>ENDIF
For renaming you can use MoveFile
DECLARE INTEGER MoveFile IN KERNEL32.DLL ;
>   STRING SourceFileName, ;
>   STRING DestFileName
>IF MoveFile("orders.pdf", "ABCDEFGH-O.PDF")  > 0
>  * File moved/renamed
>ELSE
>  * File isn't moved/renamed
>ENDIF
>
>
>
>
>>Could someone please tell me how I could rename WORD Files
>>
>>e.g.
>>6456108.dca.site-2053.tid-74.wt-note – rv.edit-n.mtid-6627
>>from lower case to upper case.
>>
>>I get several of such files. These files are originally received by me in upper case. Thereafter the software copies the files to another area using the COPY FILE command. This is when the problem happens. The new area where the file is copied appears in smaller case instead of a ditto copy.
>>
>>Is there any way this problem could be overcome.
>>
>>Thanks,
>>Freddie Rodrigues
Eric Kleeman - EDS Consulting Services
MCP Visual FoxPro
MCSD C#.NET
Hua Hin Thailand
Los Angeles California
Previous
Reply
Map
View

Click here to load this message in the networking platform