CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Threaded View

  1. #3
    Join Date
    May 2010
    Posts
    10

    Re: Mapped Drive to UNC

    Thanks for the reply, David.

    NET USE tells me :
    Status Local Remote Network

    --------------------------------------------------------------------------
    OK N: \\server1\ Microsoft Windows Network

    Which tells me the connection should be okay.

    As a little more information, this program is a service that will be open user-specified text files, and they might specify Mapped, UNC or local and I need to be able to handle all three. Since C# doesn't like Mapped paths, I'm resorting to this.

    When I call WNetGetConnection on "N:" it returns 2250, even though net use still shows okay.




    EDIT:

    I tried making a basic C console program and it worked great, so I'm guessing it lies somewhere in the character encoding.
    Last edited by Hoobs; July 19th, 2011 at 01:57 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured