Runing a run window in os?
-
In xp prof window when we click start->Run then run window(with title Run) appears is there any way in a program that this window appears programatically ? if it is an exe file where is it? so that i could start it like a process. r00d0034@yahoo.com
-
In xp prof window when we click start->Run then run window(with title Run) appears is there any way in a program that this window appears programatically ? if it is an exe file where is it? so that i could start it like a process. r00d0034@yahoo.com
To make the window appear programmatically, you need to add reference to shell32 dll in the system32 directory to your c# project. Once this is done, you create an instance of shellclass and call the
FileRun
method. The code looks like thisShellClass obj = new ShellClass(); obj.FileRun();
Hope this helps. Cheers Kannan -
In xp prof window when we click start->Run then run window(with title Run) appears is there any way in a program that this window appears programatically ? if it is an exe file where is it? so that i could start it like a process. r00d0034@yahoo.com
You could write a dialog box that does the same thing, basically prompting the user for the name of the exe/program, and then passing the information to ShellExecute or CreateProcess (WIN32 API). If you are using C#, then you could use Process class. Gaulles http://www.gaulles.com