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

change extensions

Status
Not open for further replies.

Ronze55

MIS
Jul 9, 2004
54
US
Hi everyone,

I would like to change a flat file (*.in) to a *.txt.

I thought I could use the process object but I'm pretty sure I am wrong.

any suggestions?

thanks
Ronze
 
thanks for taking the time to look into this message,

i ended up using this

strNewFile = Mid(e.FullPath, 1, InStr(e.FullPath, ".")) & "txt"
System.IO.File.Copy(e.FullPath, strNewFile)
System.IO.File.Delete(e.FullPath)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top