Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Launching executable file

Launching executable file

Scheduled Pinned Locked Moved Visual Basic
helplinuxquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Desmond
    wrote on last edited by
    #1

    Dear All, I am having difficulty in running the following code: - Basically, i am writing this code in Window XP and it run well. But, when i changed to Window 98, it run the notepad.exe, but also pup-up the message box. May i know what is the problem here. The followings are the exact code that i used in XP and 98. Thank in advance. Merry Xmas n happy new year... Dim x As Integer Private Sub Form_Load() On Error GoTo Err x = Shell("Notepad.exe", vbHide) Unload Me Exit Sub Err: MsgBox "File Not Found", vbCritical Unload Me End Sub

    R 1 Reply Last reply
    0
    • D Desmond

      Dear All, I am having difficulty in running the following code: - Basically, i am writing this code in Window XP and it run well. But, when i changed to Window 98, it run the notepad.exe, but also pup-up the message box. May i know what is the problem here. The followings are the exact code that i used in XP and 98. Thank in advance. Merry Xmas n happy new year... Dim x As Integer Private Sub Form_Load() On Error GoTo Err x = Shell("Notepad.exe", vbHide) Unload Me Exit Sub Err: MsgBox "File Not Found", vbCritical Unload Me End Sub

      R Offline
      R Offline
      Ray Cassick
      wrote on last edited by
      #2

      in the error handler take a look at the error message and error number to give an indication as to why your handler is being called.


      Paul Watson wrote: "At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
      George Carlin wrote: "Don't sweat the petty things, and don't pet the sweaty things."


      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups