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

Change extension

Status
Not open for further replies.

Helen1greece

Technical User
Jun 4, 2003
85
GR
Is there a way to change extension of a file which I now it's location? Can somebody give me an example code?
 
Lookup the name statement:

Name "Fred.bas" As "Fred.Tmp"

I think!
 
just rename it!

There are many examples of this in the forum...

Simplest

name "C:\myFile.txt" as "c:\myFile.old"

Take Care

Matt
If at first you don't succeed, skydiving is not for you.
 
Glasgow[/b}
Crash....

Take Care

Matt
If at first you don't succeed, skydiving is not for you.
 
Matt

I believe you crashed into the back of me! Rules of the road suggest that you are at fault. My insurers will be in touch [smile].
 
aaah,

I better not stop then!

Take Care

Matt
If at first you don't succeed, skydiving is not for you.
 
You pulled out on me!

Take Care

Matt
If at first you don't succeed, skydiving is not for you.
 
Ohh alright, I was on the phone and didn't want a ticket

Take Care

Matt
If at first you don't succeed, skydiving is not for you.
 
I have a FileListBox on my program and I want to change the extension at the selected(maybe more than one)files. What should I do? Can somebody give me an example code? Thanks mattKnight and Glasgow for your help and thanks in advance everyone else...! Have a happy new year!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top