Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

add a file extention

Status
Not open for further replies.

borsker

Programmer
Jul 24, 2002
147
US
I am trying to add a file extention to a customer file but when i try to use this command
Code:
rename file filename to filename.txt

it tells me that a required clause or something is missing

Does anyone know how i can change it
 
The syntax is simply:

RENAME <FileName1> TO <FileName2>

...you don't need the 'FILE' statement, but you do need the 'TO'.

Neil

I like work. It fascinates me. I can sit and look at it for hours...
 
the problem is the file does not have an extention. so when i say rename filename to filename.txt, it looks at filename to be a .dbf. when it does not see a filename.dbf it errors.
 
Try:

RENAME file. TO file.txt

That is include a closing period.

Tamar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top