Directory.CreateDirectory issues

Posted on 2008-11-18
Last Modified: 2013-11-07
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.

Question by:Naanan
    LVL 11

    Accepted Solution

    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:


    Author Comment

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

    Expert Comment

    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

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    Requirements: root access via SSH, telnet, or other.. Alternately, access from the server administrator to run a counter-strike server, and the proper access rights to do so. Enough free disk space (and allowed to use this much, eg disk quota): 6…
    INTRODUCTION The purpose of this document is to demonstrate the Installation and configuration, of the HP EVA 4400 SAN Storage. The name , IP and the WWN ID’s used here are not the real ones. ABOUT THE STORAGE For most of you reading this, you …
    The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
    The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now