1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Very Simple Visual Basic Syntax Help Needed

Discussion in 'Other PC Software' started by loopers, 2002/12/09.

Thread Status:
Not open for further replies.
  1. 2002/12/09
    loopers

    loopers Banned Thread Starter

    Joined:
    2002/11/24
    Messages:
    6
    Likes Received:
    0
    When we insert certain CD into our CD-ROM like Warcraft 3 or Norton Antivirus 2003, there will be an .exe file (the installer with very nice interface) that automatically pops up from the CD. We do not have to go to My Computer icon (at our desktop) and access our CD-ROM drive to find the setup program.

    I would like to put something like this in my CD (I have no problems in writing the commands for autorun.inf). I know how to create an .exe file (the automatically pop up installer) in Visual Basic 6.0. However, I have a very very hard time finding the correct Visual Basic syntax for a particular button in Visual Basic. This is what I want the VB program to do:-

    Once the user click on a button, this button will run a file call a.txt

    Any help will be truly appreciated.
     
  2. 2003/01/15
    terrafutan

    terrafutan Inactive

    Joined:
    2002/12/30
    Messages:
    28
    Likes Received:
    0
    try this shell command

    Private Sub Command1_Click()
    Shell "C:\Windows\notepad.exe d:\a.txt ", vbNormalFocus
    End Sub
     

  3. to hide this advert.

Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.