stringWhat is the type of the variable?
Yes, your first understanding is correct. Isn't this very simple? How clear should this be?So you're saying that you want to test each drive on the system to see whether it has a folder with that name in the root folder? Please take the time and make the effort to provide a FULL and CLEAR explanation of the problem. You seem to be trying to get away with providing as little information as possible. Assume that too much is better than not enough.
DriveInfo
class. That will provide a list of drives you can loop over and you can use Directory.Exists
to see whether each drive contains that folder.No one has mentioned spelling so you seem to be making things up to feel aggrieved about. Consider the fact that you come here every now and again and ask a question but those of us who answer the questions are here every day, helping multiple people per day. Do you not think that it is reasonable for us to expect you to help us to help you by providing a clear explanation of your problem? Should we really have to spend our time trying to work out what problem we're actually being asked to help with before we can then provide that help? If people were considerate of those strangers on the internet whom they want to volunteer their time to help them then we wouldn't feel the need to point out that you could do a better job of asking for help.Is this how progress is being made in this forum now? ie spelling rules etc..
DriveInfo
class that you didn't know about and I didn't expect you to know about. What I do expect is for you to be able to provide a FULL and CLEAR explanation of the problem. Whatever you may think, you didn't do that. You can keep insisting that you did, learn nothing and continue posting poor questions in the future, thus reducing your chances of getting the help you want, or you can accept the fact that someone who has been answering questions on programming forums for 16 years knows a thing or two about what makes a good question and what doesn't, learn from that and do better in the future. The choice is yours. I will say no more on the matter.