Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy File and Rename File
Message
From
24/07/2003 11:46:20
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00813114
Message ID:
00813133
Views:
12
>I need to create a file with uppercase character. This file will be read in a unix system and it must be in upper case. So, my file "File1.txt" must be renamed in "FILE1.TXT". I can rename or copy.
>Someone can tell me if there is a way to obtain this ?
>
>Thanks

Creating a file with low-level file functions seems to respect the case.
So if you did something like
lc_file = FILETOSTR('file1.txt')
ln_hndl = FCREATE('FILE1.TXT')
=FWRITE(ln_hndl, lc_file)
=FCLOSE(ln_hndl)
Should make the file name upper case. At least it does on my system.
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Previous
Reply
Map
View

Click here to load this message in the networking platform