cannot start a process

Sep 8, 2010 at 12:49 PM

hello Tom

i tryed to use this snippet that i have used in the past but with your framework it seams does not work
i want to lauch an application with Process class but nothing happend when i execute it.

        private void launchprg(string name)
        {
            try
            {
                string path = @"\Windows\Start Menu\Programs\";

                Process process = new Process();
                string processname = path + name + ".lnk";
                ProcessStartInfo info = new ProcessStartInfo { UseShellExecute = true, FileName = processname };
                process.StartInfo = info;
                process.Start();

            }
            catch (Exception)
            {
            }
        }

Coordinator
Sep 12, 2010 at 11:05 PM

try with

 

info.Verb = "Open";