c# - Open/browse a password protected mapped network drive -


I want to open the C # code a map of went a network drive, but it is password protected, so when I try to open it directly, an exception is thrown, can we highlight the name and password available when opening this campaign? Exception Details:

  System.Diagnostics.Process.StartWithShellExecuteEx on System.Diagnostics.Process.Start on System.Diagnostics on (ProcessStartInfo startInfo) () . Process.Start (ProcessStartInfo startInfo) System.Diagnostics.Process.Start ( 
The name of the string file)

I'm just speaking System.Diagnostics.Process.Start ( "Z : "):

Z: is not a file name . [Edit: It's okay if it is not password protected, tried to execute your code and it worked]

Using an object as a parameter, because it is a user Try setting name and password

and about the filename parameter:

The file name is any application or document. A document is defined as any file type that has an open or default action associated with it, you can see the file types and their associated applications registered to your computer using the Folder Options dialog box, which operating system Is available through Advanced button A dialog box shows whether an open operation associated with a particular registered file type is or does not occur.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -