.NET 3.5 Visual Studio 2008 Find and Replace Files
-
I am trying to make a program that can search a directory on the local computer for a certain file and then replace all of the occurrences of that file in the directory and the subdirectories. How can I do this?
-
I am trying to make a program that can search a directory on the local computer for a certain file and then replace all of the occurrences of that file in the directory and the subdirectories. How can I do this?
-
Look at the MSDN documentation on the DirectoryInfo[^] class. There's a link to the class's member functions and properties at the bottom. There's also a
File
class inSystem.IO
you might want. DybsThanks, I got that working. Now I have another question, Can you reference files in the projects references? Like type in a path and it opens a file in the resources.
-
Thanks, I got that working. Now I have another question, Can you reference files in the projects references? Like type in a path and it opens a file in the resources.
-
Thanks, I got that working. Now I have another question, Can you reference files in the projects references? Like type in a path and it opens a file in the resources.
in first go i would say no if you put more details of your requirement then we may think an alternative