Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Windows function to rename file
Message
De
07/04/2010 17:11:20
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Windows function to rename file
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:
01459268
Vues:
107
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform