Results 1 to 3 of 3

Thread: vb or vbs or something else?

Threaded View

  1. #3
    Hyperactive Member
    Join Date
    May 2000
    Location
    Or
    Posts
    316
    If VB or VBS is your only choices, you will have to use VB. I don't think that you can pass arguments into a vbs script. In vb, you can make a formless program, just by removing the form, and adding a module to your project. Then in the module, you need a function called sub main.

    In vb, you would use the Command keyword like this:

    VB Code:
    1. Sub Main()
    2.   msgbox Command$
    3. End sub

    This will show the arguments passed to the program in a messagebox.

    Hope this helps.
    Last edited by reeset; Jun 23rd, 2001 at 09:07 PM.

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