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 13:13:38
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Miscellaneous
Thread ID:
01087582
Message ID:
01087647
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform