Process.start("notepad")
I know how to have it open a web page but I wanna make a button start a program, and if the program isn't found or on the computer have it have a pop-up window say so.
I was toldwould work, well it doesn't I then added the " things still didnt work.Code:Process.Start(program file path)
What would do that? +1 thanks and +rep and credit (If you want)
(btw I did search for another post about it before I posted this, so yeah.)
Okay it opens notepad, but I'm trying to make myself a game starter to start my games, well the first one is Crossfire and its not working I tried
Process.Start("crossfire")
Process.Start("crossfire.exe")
Process.Start("Crossfire.exe")
Process.Start("Crossfire")
NONE WORK. . .any ideas? I found a youtube video:
That would take forever and would be a huge code source. . .is that the only way?
Last edited by Web-Designer; 09-04-2010 at 07:19 PM.
Should work like that I think.Code:Process.Start("C:\Program Files\test.exe")
Jason (09-04-2010),Web-Designer (09-04-2010)
I have made a program that open the .exe of the game, but it I needs to be in the folder.
Same code
Process.Start("name of game.exe")
Notpad works because windows has it "preset" Notepad, Wordpad . etc etc.
You need the full file path plus extension otherwise
Web-Designer (09-04-2010)
Okay I got it! Thanks, I got it f*cked up some how. . .but its working now
NextGen1 (10-08-2010)
for example:work ?Code:Process.Start ("iexplore.exe")
Heal Ur Allies, And You Will Win The War.
RESPECT LIST :
- Very Good Friend - Sn0wn00b
- All the Mpgh minions ( special m3 )
- th3reaper
- respeckt52
- s3liskar
- thecamels8
It works for selected cases, as NextGen explained earlier some programs are preset in windows and so can be directly called with their executable name. The majority of programs, however, require the full path and extension to run.
i.e
[php]
Process.Start("TheGame.exe") 'this will not work, as "TheGame" is not preset in windows and it doesnt know how to activate it.'
Process.Start("C:\NewFolder\MyFiles\TheGame.exe") ' by defining the full path and extension, windows knows exactly what it should be executing and will work.
[/php]
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
Heal Ur Allies, And You Will Win The War.
RESPECT LIST :
- Very Good Friend - Sn0wn00b
- All the Mpgh minions ( special m3 )
- th3reaper
- respeckt52
- s3liskar
- thecamels8
You need to tell it exactly where the game is located.Code:Process.Start("C:\FileLocation\New Folder\GameName.exe")
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)