Advertisement

06.01.2007 at 06:22AM PDT, ID: 22606901
[x]
Attachment Details

Start process of wordpad with filename in C#

Asked by DragonByte in Microsoft Visual C#.Net, C# Programming Language

Tags: wordpad

I am trying to start Wordpad with a filename.  My path consists of LocalPath + item.Text which...in the test case...works out as "C:\\TestFile.txt".  Of course the double slashes are in there because of escaping the slash.  The issue is when I do Process.Start("wordpad.exe " + localPath + item.Text); it says that file cannot be found.  When I do File.Exists(localPath + item.Text) I get True.  The file is there.  Also, Process.Start("wordpad.exe"); works.Start Free Trial
[+][-]06.01.2007 at 07:08AM PDT, ID: 19195073

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.01.2007 at 07:23AM PDT, ID: 19195192

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Visual C#.Net, C# Programming Language
Tags: wordpad
Sign Up Now!
Solution Provided By: Dr-Hussain
Participating Experts: 2
Solution Grade: A
 
 
[+][-]06.01.2007 at 08:18AM PDT, ID: 19195658

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32