Create remote directory

Posted on 2006-05-13
Last Modified: 2010-08-05


thrown an exception "Could not find part \\win_xp\c$"

How do I authenticate to \\win_xp server so I could create my remote directory "temp". I do have \\win_xp credentials to authenticate to give me access for remote share server. How can I program it using C#? I'll be running a windows service program to create remote directory.


Question by:carlostriassi
    1 Comment
    LVL 3

    Accepted Solution

    Check out this impersonation demo from thecodeproject :

    You can impersonate a user with the correct credentials, and then running your code as the impersonated user.

    Be careful, storing username/password info in a .NET executable as it may be decompiled and read by unscrupulous individuals.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Suggested Solutions

    This article will show, step by step, how to integrate R code into a R Sweave document
    Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    746 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

    13 Experts available now in Live!

    Get 1:1 Help Now