Directory.CreateDirectory issues

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

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

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
\\server\c$\directoryInQuestion
, if it doesn't I want to create a new directory at the location
\\server\c$\directoryInQuestion

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

Thanks,
Patrick
NaananAsked:
Who is Participating?

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

x
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.

WilliamCommented:
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:
@"\\myserver\c$\directory"
or
"\\\\myserver\\c$\\directory"

0

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?
0
WilliamCommented:
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
0
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.