connecting to network folder using vb.net
-
HI, In my system, MyNetworkPlaces-> I have few network folders shared for me. when I click those to view, it prompts the dialogbox to connect to that folder. If I give username and passwork it connects. so now in my VB.net application, I am asking user to select the network folder, by showing Browse for folder dialog box. The thing is when user selects, any network folder I want to know whether it is connected or not, if not I need to prompt the dialogbox with username and password fileds for connecting to it. so How can I achieve this using vb.net? and what class I need to use for connecting to network folder? I am really struggling for this. Please help me as soon as possible. For ex: I want to connect to \\machine1\somefolder or \\machine2\somefolder, when user selects this folder I need to know whether is it accessinble for user machine, if no i need to prompt the dialog box to connect with username and password as windows shows. Thanking you Regards Praveen P
-
HI, In my system, MyNetworkPlaces-> I have few network folders shared for me. when I click those to view, it prompts the dialogbox to connect to that folder. If I give username and passwork it connects. so now in my VB.net application, I am asking user to select the network folder, by showing Browse for folder dialog box. The thing is when user selects, any network folder I want to know whether it is connected or not, if not I need to prompt the dialogbox with username and password fileds for connecting to it. so How can I achieve this using vb.net? and what class I need to use for connecting to network folder? I am really struggling for this. Please help me as soon as possible. For ex: I want to connect to \\machine1\somefolder or \\machine2\somefolder, when user selects this folder I need to know whether is it accessinble for user machine, if no i need to prompt the dialog box to connect with username and password as windows shows. Thanking you Regards Praveen P