Denaes Posted July 1, 2003 Posted July 1, 2003 say I wanted to change an extension from .wpd to .txt. I know how to read a filename, at that point I'd have to search for the .wpd and if found, replace it. I'm not sure how to do the replacing in .net. Could anyone help me out ? Quote
*Experts* mutant Posted July 1, 2003 *Experts* Posted July 1, 2003 IO.File.Copy("C:\somefile.txt", "C:\somefile.wpd") IO.File.Delete("C:\somefile.txt") :) Quote
Denaes Posted July 2, 2003 Author Posted July 2, 2003 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 don't care, they're all small files and my boss didn't 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, he's happy... later on I figure out how to rename properly and the process is done in half the time and I look smart :P I'm sure Dilbert would have a name for this, and it would involve Weasel :D Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.