Quote:
I have a question. My program is setup to change registry entries but if a computer doesn't have the registry entry I'm trying to change, I get a nasty error about it not being there. I wanted to know how I would go about checking to see if there is a registry entry there and if it wasn't there, I would just hide the controls that modify that entry so no one would get error messages.
There should be a way but I dont remember anything ooffff my head... easiest way is to put it in a try...catch block and check for that specified error in a catch block. Simple and not too bad :)
Quote:
I also wanted to know how to move and rename files. I know how to do it via command prompt and tried to do that in VB with the process.start("commands") but it doesn't work. When I try to rename a file that exists in a certain directory, then copy a file in the same folder as my program, it says it cannot find the file. What would be the best way to copy files form the local folder to another folder?
take a look at the System.IO namespace... some random answers: