Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windows function to rename file
Message
From
07/04/2010 17:11:20
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Windows function to rename file
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01459268
Message ID:
01459268
Views:
106
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
Next
Reply
Map
View

Click here to load this message in the networking platform