Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running the Run Command 2

Status
Not open for further replies.

Boxster1987

Programmer
Aug 9, 2002
19
0
0
US
Does anybody kno how to make a program that will execute the run command?
 
You might the following undocumented API Call (from the API Viewer)

Private Declare Function SHRunDialog Lib "shell32" Alias "#61" (ByVal hOwner As Long, ByVal Unknown1 As Long, ByVal Unknown2 As Long, ByVal szTitle As String, ByVal szPrompt As String, ByVal uFlags As Long) As Long

Private Sub cmdRun_Click()

SHRunDialog Me.hWnd, 0, 0, "Start a program ...", "Type the name of a program ...", 0

Exit Sub Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
This came up a day or two ago...<fx: tappety, tappety, <keyword search>>...
...
...
Yep, here we are. CajunCenturion's code does the job in thread222-348999
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top