Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Working with file names having not English characters
Message
 
To
17/01/2006 15:49:27
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Miscellaneous
Thread ID:
01087582
Message ID:
01087732
Views:
11
>>>
>>>If you want a correct and professional programmation
>>>you have to use the windows's API.
>>>The whole rest is made for the "young marmots".
>>>
>>>
>>>DECLARE INTEGER MoveFile IN Win32API ;
>>>   STRING @lpExistingFileName, ;
>>>   STRING @lpNewFileName
>>>
>>>oldName = "FILE$$$"
>>>newName = "FILEnew$$$"
>>>STRTOFILE("x",m.oldName)
>>>? FILE(m.oldName),FILE(m.newName)
>>>
>>>IF MoveFile(@m.oldName,@m.newName) > 0
>>>   ? "ok"
>>>ELSE
>>>   ? "error"
>>>ENDIF
>>>? FILE(m.oldName),FILE(m.newName)
>>>
>>>
>>>MoveFileEx is better.
>>
>>Thanks, but I do not know the file name in advance. The first problem is how to get the proper end exact file name when reviewing the directory contents.
>
>read the directory with the others window's API.

Thanks, but with what API? I used FindFirstFile, FindNextFile following the example, say, from *http://www.news2news.com/vfp/?example=236&function=378, and still have "???????" instead of file proper name.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform