Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How Do I Start A Program With A Particular File

Posted on 2004-08-24
6
Medium Priority
?
202 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 2000 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:Fahad Mukhtar
ID: 11882655
System.Diagnostics.Process.Start("Your_File_path")
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 19

Expert Comment

by:Fahad Mukhtar
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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

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 …
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Loops Section Overview
Suggested Courses

886 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