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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Save as a new filename

Status
Not open for further replies.

fergmj

Programmer
Feb 21, 2001
276
US
I have a text file that I open (file's name is 011907_123.fix)

Open outputpath + File1.List(gogo) For Output As #2

I write a string to the text file

Print #2, FirstStr

Now I want to rename the file to APWxxxx.txt

The xxxx need to increment for each file I do.

How do I change the filename after closing the file?

thanks

fergmj
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top