Solved

How Do I Start A Program With A Particular File

Posted on 2004-08-24
6
196 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

 
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

752 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