Click to See Complete Forum and Search --> : Rename a File
Nenplas
Jan 27th, 2000, 07:12 PM
How would i rename a file in vb?
what is the command?
E.g.
source file = test.txt
output file = notatest.txt
------------------
Will Greene
Buzby
Jan 27th, 2000, 07:18 PM
Name [oldfilename] As [newfilename]
------------------
Mark "Buzby" Beeton
VB Developer
BuzbyB@HotMail.Com
DiGiTaIErRoR
Jan 27th, 2000, 07:19 PM
You could try this:
Open the file
Save the file as different name
Close files
Delete old file
Good Luck,
------------------
DiGiTaIErRoR
VB, QBasic, Iptscrae, HTML
Quote: There are no stupid questions, just stupid people.
Buzby
Jan 28th, 2000, 11:57 AM
I think you'll agree that
Name [old] As [new]
is simpler, quicker, and neater.
------------------
Mark "Buzby" Beeton
VB Developer
BuzbyB@HotMail.Com
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.