Results 1 to 3 of 3

Thread: open file

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2003
    Posts
    83

    Resolved open file

    How would I open a file with parameters?

    This close?

    VB Code:
    1. Private Sub cmdClick()
    2.  
    3. open "sc.exe stop wzcsvc" ?????????

    the question marks resemble where i'm stuck. Could anyone please help?
    Last edited by dubbemiah; Nov 21st, 2004 at 10:08 PM.
    ---------------------------------
    Dubbemiah
    "Simply, a beginner."

  2. #2
    Frenzied Member David.Poundall's Avatar
    Join Date
    Sep 2002
    Location
    Robin Hood Land
    Posts
    1,457
    Try this.

    http://www.vbforums.com/showthread.p...ighlight=shell

    In the forum, do a search on Shell for bucket loads of code.
    David

    Learn the Rules so that you know how to break them properly.

    Printing dll dBTools MZTools Winsock API WinsockVB More Winsock SGrid2 MSChart Mail2Web

    If you have found this thread useful then read this

  3. #3
    Software Eng. Megatron's Avatar
    Join Date
    Mar 1999
    Location
    Canada
    Posts
    11,286
    Use Shell; Type the parameters after the EXE
    Code:
    Shell "MyFile.exe parameters"

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