Results 1 to 3 of 3

Thread: Calling Utilities

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2002
    Posts
    10

    Calling Utilities

    I would like to know how i can call utility programs as anti-virus, scan disk, defragment, etc. from a vb program. Also how would i write the code in order for them to execute from my program without any user intervention.

    Thanks to all that respond.

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    To execute another program :
    VB Code:
    1. Shell "SomeApp.exe",1

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3
    Frenzied Member John McKernan's Avatar
    Join Date
    Jan 2002
    Location
    SE PA
    Posts
    1,295
    In crptcblade's post, the Shell Statement can include any command line arguments or switches that the external program may use to automate operations. The would be included in the "SomeApp.exe" according to the specification of the external program.

    For example:

    VB Code:
    1. Shell "SomeApp.exe Arg1; Arg2",1

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