Yuri,
Sorry, one more question:
Will the rename that you have below work in a VPF 7 .exe running on W98?
>Then you need to work with CopyFile function instead. The syntax is the same.
>As usual, you cannot copy the file into the very same directory.
>
>>Yuri,
>>
>>I would like to create a copy of the file.
>>Should I take the 'movefile' literally?
>>TIA.
>>
>>>It is how it works. Try this instead:
>>>
>>>DECLARE INTEGER MoveFile IN Win32API;
>>> STRING @lcoldname , STRING @lcnewname
>>>
>>>lcoldname = 'A.DBF'
>>>lcnewname = 'B.DBF'
>>>?MoveFile(@lcoldname, @lcnewname)#0
>>>
>>>clear dlls
>>>
>>>>I am renaming a file as in the code below, but the resulting filename that is stored on disk is lower case.
>>>>The O/S is XP PRO.
>>>>
>>>>local lcMacro
>>>>lcMacro = Upper("rename 'A.DBF' to 'B.DBF'")
>>>>wait window lcMacro && just to verify that files names are uppercase
>>>>&lcMacro
>>>>
>>>>TIA.