I have tried to run an exe file the code is given below
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;
namespace ApplicationShield
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
Process p = new Process();
try
{
string path;
p.StartInfo.UseShellExecute = false;
p.StartInfo.FileName = @"\\192.168.0.1\\public\\Akmal\\IBTalk_Screenshare.exe";
p.Start();
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
MessageBox.Show("Installation Canceled");
}
}
}
}
Now when i publish the project , In the result a form is installed on the system , but when i click the button it show me the exception
System.ComponenetModel.Win32Exception The Network name cannot be found at
System.Diagnostic.Process.StartWithShellExecuteEx(ProcessStartInfo,StartInfo)
at System.Diagnostic.Process.Start(ProcessStartInfo,StartInfo)
at ApplicationShield.Form1.Button1_Click(Object sender,EventArgs e)
it runs perfectly on Windows XP but it show the above mentioned Exception in windows 7