How do you change a files extension?

Denaes

Well-known member
Joined
Jun 10, 2003
Messages
956
say I wanted to change an extension from .wpd to .txt.

I know how to read a filename, at that point Id have to search for the .wpd and if found, replace it.

Im not sure how to do the replacing in .net.

Could anyone help me out ?
 
Thats was one theory I had. I was looking for the least drain on resources... I guess I figured it was quicker/easier for VB.Net to just rename it rather than make a copy of it, then delete it...

I dont care, theyre all small files and my boss didnt give me any speed or resource considerations, just trying to make it as streamlined as possible.

Hey, that might work out fine... let the boss get the crappy version, hes happy... later on I figure out how to rename properly and the process is done in half the time and I look smart :P

Im sure Dilbert would have a name for this, and it would involve Weasel :D
 
Back
Top