Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Windows function to rename file
Message
 
 
À
07/04/2010 17:11:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01459268
Message ID:
01459273
Vues:
69
This message has been marked as the solution to the initial question of the thread.
Check http://www.berezniker.com/content/pages/visual-foxpro/copy-move-rename-file-preserving-destination-name-case

The Windows API function is MoveFile.

>Hi all,
>
>Users of this app have a feature where they trigger a long report to be run that is then outputted to pdf (into their personal directory on their network). They have complained that they will "see" the file in their directory and try to open it and it doesn't work - the report writer is not yet finished writing the file out.
>
>I suggested to them that the way to let them know when the pdf is finished would be to have me originally output it with a random name and then once the report is done running, I will rename it to its final name as a last step. Once they see a non-random name, they know it is good to open it.
>
>So they like this - except - VFP's rename function forces the all the name characters to lower case. They don't like this as they are used to putting in a specific name so that when they email the report, it looks they way they want it to. No matter what case you specifiy in the "to" name, it always comes out lowercase.
>
>Anyone know if there is a Windows function that I could call to do the renaming that would respect case?
>
>Thanks,
>Albert
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform