Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Working with file names having not English characters
Message
 
À
17/01/2006 13:13:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Divers
Thread ID:
01087582
Message ID:
01087647
Vues:
13
>
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform