executing a remote command.. \\server\filename.exe in a vbscript

Discussion in 'Scripting' started by Peter, May 5, 2004.

  1. Peter

    Peter Guest

    Hi All,

    trying to launch my anti-virus install program from a VBScript for W3K logon
    scripts and get:
    expected statement
    code: 800A0400

    the command is:
    \\servername\inoremote$\image\setup.exe /N

    is there a vbscript command i require to execute this ?

    any help appreciated, thank you
    Peter
     
    Peter, May 5, 2004
    #1
    1. Advertisements

  2. Peter

    Peter Guest

    i think you're to use wscript.shell method ?

    result = objshell.run(\\servername\inoremote$\image\setup.exe /N, 2, FALSE)
    Set objshell = Nothing

    seems to have worked
     
    Peter, May 5, 2004
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.