Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rename File
Message
 
To
10/09/2004 04:16:16
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00940948
Message ID:
00940949
Views:
46
Try this (not tested):
oldFile = GetFile()
IF .NOT. EMPTY(oldFile)
** If You want to save the extension
** Use this:  newFile = ADDBS(JUSTPATH(oldFile))+"NewFileName."+JUSTEXT(oldFile)

   newFile = ADDBS(JUSTPATH(oldFile))+"NewFileName.EXT"
   RENAME (oldFile) TO (newFile)
ENDIF
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform