Solved

How Do I Start A Program With A Particular File

Posted on 2004-08-24
6
162 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
Comment Utility
use...
Process.Start("File Address")
-Baan
0
 
LVL 18

Accepted Solution

by:
DotNetLover_Baan earned 500 total points
Comment Utility
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
Comment Utility
System.Diagnostics.Process.Start("Your_File_path")
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 19

Expert Comment

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

Expert Comment

by:imu79
Comment Utility
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
Comment Utility
or

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

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

744 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

18 Experts available now in Live!

Get 1:1 Help Now