Results 1 to 4 of 4

Thread: Opening another application

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Posts
    9

    Post

    I have been trying to open an external application from VB using the following code:

    Dim shellProgram As String
    Dim res
    shellProgram = “c:\put file name in here"
    res = Shell(shellProgram,vbNormalFocus)
    End Sub

    It keeps saying "No file found"... my application is not an exe extention, it is ICO (whatever that is). Does anyone know what I can do... please help!

  2. #2
    Hyperactive Member venkatraman_r's Avatar
    Join Date
    Jul 1999
    Location
    Chennai, INDIA
    Posts
    284

    Post

    Hi,

    I really dont think that you would be able to open an icon file using shell command. Did u tried it with the image/picture control??Even then i dont think that u would be ableto get what u want?



    ------------------
    Regards,

    Venkat

    [email protected]
    ICQ: 45714766
    http://venkat.iscool.net


  3. #3
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238

    Post

    Hope this can solve your problem.

    Dim shellProgram As String
    Dim ShellFile as string
    Dim res
    shellProgram = "C:\Windows\Notepad.exe"
    shellFile = "c:\text1.text"
    res = Shell(shellProgram & " " & shellFile,vbNormalFocus)
    End Sub

    The above example is open text file, so you need to find an application that can open *Ico file type and put it into the shellProgram.

    ------------------
    A free Man stand on a free Land.
    [email protected]

    [This message has been edited by Chris (edited 02-22-2000).]

    [This message has been edited by Chris (edited 02-22-2000).]

  4. #4

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Posts
    9

    Post

    Thankyou! duh that I didnt know ICO was an Icon file!

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