Reputation: 1657
Could anyone please advise? I want my winforms app to open a network location. The network location is password protected etc, but that should be left for the user to enter as normal.
I tried this but explorer just opens at the default page (my computer).
Process.Start("Explorer.exe", @"/select,""" + "\\\\SomeLocation\\c$\\SomeDir\\"
+ "\"");
I also tried this but it raises an exception:
Process.Start("\\\\SomeLocation\\c$\\SomeDir\\");
I got this error
'The specified network password is not correct'
I don't want network credentials to be a part of the application.
Upvotes: 1
Views: 1309
Reputation: 5505
Process.Start("explorer.exe", @"\\m3\c$");
Note sure if you should pass a subdirectory.
Upvotes: 1