CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2000
    Location
    Cedar Rapids, Iowa, USA
    Posts
    57

    Windows - Start - Run

    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

  2. #2
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Re: Windows - Start - Run

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured