dbTalk Databases Forums  

renaming a file

comp.databases.paradox comp.databases.paradox


Discuss renaming a file in the comp.databases.paradox forum.



Reply
 
Thread Tools Display Modes
  #21  
Old   
marco
 
Posts: n/a

Default Re: renaming a file - 05-26-2008 , 12:10 PM






beside the other answers i would use string(month(today())

bye
marco

ken wrote:
Quote:
After I export a db file to a text file, I tried to rename it as a
unique file. Since this process is going to happen every month, I would
like to place the renaming process in a script. The script works until I
try to rename it. The following is in the script.

prod_file="fficerod" +month(today())+".xls")
if not rename("office:tmp_file.xls",prod_file) then
errorshow()
endif

The error message states :
error in rename procedure, unknown table type

What am I doing wrong.

you may e-mail me at :
whoknows (AT) hal-pc (DOT) org.


Reply With Quote
  #22  
Old   
marco
 
Posts: n/a

Default Re: renaming a file - 05-26-2008 , 12:10 PM






beside the other answers i would use string(month(today())

bye
marco

ken wrote:
Quote:
After I export a db file to a text file, I tried to rename it as a
unique file. Since this process is going to happen every month, I would
like to place the renaming process in a script. The script works until I
try to rename it. The following is in the script.

prod_file="fficerod" +month(today())+".xls")
if not rename("office:tmp_file.xls",prod_file) then
errorshow()
endif

The error message states :
error in rename procedure, unknown table type

What am I doing wrong.

you may e-mail me at :
whoknows (AT) hal-pc (DOT) org.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.