Results 1 to 4 of 4

Thread: Shell Statement for URLs crashes with NT & 2000 ??!?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Posts
    70
    I execute the following code from W98 ;

    code:

    Private Sub Picture1_DblClick()
    Dim Keyword As Variant
    Keyword = "start.exe " & AnaSayfa
    Keyword = Shell(Keyword, vbHide)
    End Sub

    'Where Public AnaSayfa is as string and is ;= "http://www.blablasite.com/default.asp?"

    This code executes with no problems on Win98 however on NT4.0 and 2000 it crashes..

    WHY?
    Kiziltan Yuceil
    Freelance Web/VB/VBA Programmer
    "It's not what you know it's to whom you consult and with whom you collaborate"

  2. #2
    Fanatic Member
    Join Date
    Jul 2000
    Location
    Manchester NH
    Posts
    833
    No Sure.... Why not just do this



    Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hWnd As Long, ByVal opOperation As String, ByVal lpFile As String, ByVal opParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long


    Public Sub ShellExe(What As String)
    On Error Resume Next
    Call ShellExecute(0&, vbNullString, What, vbNullString, vbNullString, vbNormalFocus)
    End Sub




    shellexe "http://www.blablasite.com/default.asp"





    Kurt Simons
    [I know I'm a hack but my clients don't!]

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Posts
    70

    Thumbs up Thanx Kurt!

    that saved it and me!!

    I am grateful..
    Kiziltan Yuceil
    Freelance Web/VB/VBA Programmer
    "It's not what you know it's to whom you consult and with whom you collaborate"

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Posts
    70

    Arrow Urgent help needed on some other fact!

    Kiziltan Yuceil
    Freelance Web/VB/VBA Programmer
    "It's not what you know it's to whom you consult and with whom you collaborate"

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