how to execute a VBScript file from a VB6 subroutine?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dgr7
    New Member
    • Dec 2006
    • 5

    #1

    how to execute a VBScript file from a VB6 subroutine?

    Hello,
    I was wondering if anyone could share with me the VB6 code that would execute a VBScript file named
    test.vbs
    in the subdirectory
    D:\test\
    thanks in advance,
    david
  • iburyak
    Recognized Expert Top Contributor
    • Nov 2006
    • 1016

    #2
    Just use

    [PHP]Shell "D:\test\test.v bs"[/PHP]

    Comment

    Working...