executing a script with \\servername\filename.exe

Discussion in 'Scripting' started by Peter B, Mar 2, 2005.

  1. Peter B

    Peter B Guest

    Hi All.

    i need to launch my anti-virus setup app when the user log's in to check if
    the av software is installed on their workstaion, and if its the latest
    version. I could swear trying to execute a unc patch in a batch file use to
    work (at least some of the time).

    set objFS = create....("wscript.shell")
    obFS.Run("\\servername\avsoft\setup.exe /s /n")

    can a unc be run in a script ??
    thanks in advance.
    Peter B, Mar 2, 2005
    1. Advertisements

  2. i need to launch my anti-virus setup app when the user log's in to
    In general, yes.

    However, some EXEs are not written to be 'unc aware' (to coin a phrase).
    Some require that you map a drive letter to the share path and run the EXE
    via the mapped drive. They may even require that you set the current
    directory to the EXE's home folder.

    The needs of any given EXE are determined by the programmer that wrote it.
    If unc path execution doesn't work in your case, you'll need to cantact the
    vendor for details on what the EXE's runtime requirements are...
    Michael Harris \(MVP\), Mar 3, 2005
    1. Advertisements

  3. Peter B

    Peter B Guest

    thanks for the info Michael

    Peter B, Mar 3, 2005
  4. What error do you get, and have you tried running some other silent EXE
    files in the same way?
    Gerry Hickman, Mar 4, 2005
  5. Peter B

    Peter B Guest

    no errors.
    if i remove the executable file, and just leave the path, it opens the
    directory listing. i also remove the /s /n and still no avail., regards of
    any exe

    Peter B, Mar 4, 2005
  6. Please post the exact script you are using. This doesn't make sense to me.

    Also, are you saying it works perfectly when you use a local path?
    Gerry Hickman, Mar 4, 2005
    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.