CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2002
    Location
    Minneapolis
    Posts
    98

    [VB] Start a application from another application on NT

    Hello All,

    I am trying to find call other then ShellExecute() that opens and runs applications on an NT box. Any suggestions.


    regards,
    Jay

  2. #2
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    WinExec ?

    What exactly are you looking for (Or: what is wrong with shellexecute)? Could
    winexec work for you?
    Code:
    Private Declare Function WinExec Lib "kernel32" ( _
                    ByVal lpCmdLine As String _
                  , ByVal nCmdShow As Long) As Long
    Private Sub Form_Load()
        'KPD-Team 1998
        'URL: http://www.allapi.net/
        'E-Mail: KPDTeam@Allapi.net
        'Execute explorer.exe
        WinExec "Explorer.exe c:\", 10
    End Sub
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

  3. #3
    Join Date
    May 2002
    Location
    Minneapolis
    Posts
    98

    [VB] what I am looking for

    shellExecute() opens internet explorer on Win98/Win2K/WinXP with this call
    rc = ShellExecute(App.hInstance, "open", url, vbNullString, "C:\", _
    SW_SHOWNORMAL)

    it does not work seem to be working with Windows NT.


    regards,
    Jay

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