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

Renameing a file.

Status
Not open for further replies.

quebasic2

Programmer
Dec 17, 2002
174
IN
Is there a command to rename a file in qbasic?
I know how to use the shell command, and I know how to read from a file a write to another file then delete the old file, but I just wondered if you could just rename a file with qbasic.
 
I'm not sure about this, but I think there's a NAME command. I know this because I tried to use name$ for a variable once, and it wouldn't let me.

Ok I just looked and its prototype is:
NAME oldfilename AS newfilename

Hope this helps :) This signature is subject to change without notice.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top