Directory.CreateDirectory issues

I have a two part question. If I am trying to access a non shared drive on a server such as
What is this called (the c$). Also it would appear that I can't programatically create a new directory at

Obviously if I went in and created a new directory and then shared it I could access it like

But I would rather be able to deal with the more ambiguous case using the c$ (I can't for the life of me remember what that is reffered to).

So anyway I am trying to programatically check to see if a directory exists at
, if it doesn't I want to create a new directory at the location

Any help (and the term that is used to describe drive access using that $) would be fantastic.

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You have to remember that the application will need admin rights to the c$ drive (no matter where it is located)
Also the call
Directory.Create will work as you plan...
Just remember to create your string:


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
NaananAuthor Commented:
Thanks, if the application is running under my credentials and I have admin access to the c$ drive then it should be all good correct?
But remember if it is running under someone elses it may fail...
If this is for your use only... no problem that I can see
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Editors IDEs

From novice to tech pro — start learning today.