.NET Components for Mobility

Crediantial Network Share

Last post 09-21-2010 1:54 PM by saber1984. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 09-06-2010 7:13 PM

    Crediantial Network Share

    Hallo,

     it is possible to connect a network share with username and passwort?

     I have the problem that I want to connect to a shared folder, but I want in my program to enter the username  and password with, so that the dialog in wm 6.5 does not appear network log on.

     i hope you can help me..

     Best Regards,

    Saber

     

  • 09-08-2010 5:41 AM In reply to

    Re: Crediantial Network Share

    See the InTheHand.Net.NetworkShare.AddConnection method. You can map a share to a local path and supply credentials. The local path can then be used with regular file functionality in System.IO. Then use CancelConnection once you've finished.

    The local name you specify becomes a subfolder of the virtual "Network" folder making your local path something like:-

    "\Network\MyShare\MyFile.txt"

     

    Peter

  • 09-21-2010 1:54 PM In reply to

    Re: Crediantial Network Share

    Thanks Peter,

    it works fine!! :)

Page 1 of 1 (3 items)
Copyright © 2001-2012 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy. OrcsWeb's Windows Cloud Server Hosting