Link to home
Start Free TrialLog in
Avatar of Naanan
NaananFlag for United States of America

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of William Domenz
William Domenz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Naanan

ASKER

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?
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