Solved

How Do I Start A Program With A Particular File

Posted on 2004-08-24
6
182 Views
Last Modified: 2010-04-23
Hi,

I am trying to start a program C:FlashPla.exe and have it open a particular file when it appears.

How do I do this?

B-
0
Comment
Question by:bczingo
6 Comments
 
LVL 18

Expert Comment

by:DotNetLover_Baan
ID: 11882578
use...
Process.Start("File Address")
-Baan
0
 
LVL 18

Accepted Solution

by:
DotNetLover_Baan earned 500 total points
ID: 11882619
for example..   Process.Start("IExplore.exe", "C:\myPath\myFile.htm")
http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemDiagnosticsProcessClassStartTopic.asp
0
 
LVL 19

Expert Comment

by:Desp
ID: 11882655
System.Diagnostics.Process.Start("Your_File_path")
0
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
LVL 19

Expert Comment

by:Desp
ID: 11882678
path of the particular file that you want to open with FlashPla.exe
0
 
LVL 3

Expert Comment

by:imu79
ID: 11882735
something like this:

dim oStartInfo as New System.Diagnostics.ProcessStartInfo
with oStartInfo
   .FileName = "C:\FlashPlay.exe"
   .Arguments = "C:\myFlash.swf"
   .WindowStyle = ProcessWindowStyle.Normal
end with

System.Diagnostics.Process.Start(oStartInfo)

Look at the ProcessStartInfo class for more options to customize the way you start the new process. Both the Process and the ProcessStartInfo classes are in the System.Diagnostics namespace.

hope this helps..
Imran.
0
 
LVL 25

Expert Comment

by:RonaldBiemans
ID: 11882871
or

Shell("c:\FlashPla.exe " & yourfile, AppWinStyle.MaximizedFocus)
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now