Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
// for the Process()
using System.Diagnostics;
string mCommand = @"/c net use q: \\server\share";
Process myProcess = null;
try
{
myProcess = new Process();
myProcess.StartInfo.FileName = "CMD.EXE";
myProcess.StartInfo.Arguments = mCommand;
myProcess.StartInfo.CreateNoWindow = true;
myProcess.StartInfo.UseShellExecute = false;
myProcess.StartInfo.RedirectStandardError = true;
myProcess.Start();
if(!myProcess.WaitForExit(60000))
{
// do error failure stuff
}
}
catch(Exception ex)
{
// more error stuff
}