Click to See Complete Forum and Search --> : Windows - Start - Run


Yamini
August 3rd, 2001, 05:37 PM
When we click on the start button, then click on Run, a dialog box will be opened. We then will browse
or type a filename with or without the full path and click OK.

That file gets opened.

Now, the question is which windows exe/utility will take the file name (with or wthout full path) that
we have entered, as a parameter and opens that file depending on the extension??

Please get back to me as soon as possible.

Thank you very much for your response in advance.


Yamini

John G Duffy
August 3rd, 2001, 06:31 PM
You can use the SHELL command to do essentially the same thing. Here is an example:

private Sub Command1_Click()
Shell "C:\Windows\Notepad.exe C:\AutoExec.Bat"
End Sub



This code starts Notepad telling Notepad to edit the Autoexec.bat file.

John G