Re: Launch Exe file if folder does not exist

From: Al Dunbar [MS-MVP] (alan-no-drub-spam_at_hotmail.com)
Date: 04/27/04


Date: Mon, 26 Apr 2004 20:21:40 -0600


"Campbell" <campbellirvine@hotmail.com> wrote in message
news:C9A3F6AD-00D7-4B68-9950-48E50B084458@microsoft.com...
> Hi,
>
> I am currently trying to get a exe file to launch which is held on a
server to only start if a folder on the local computer is not present. The
exe file is a pain to get converted into a msi, and it has a nifty 'quiet
install' arguement which works quite well.
>
> I have got the basic script to kick off the install:
>
> " Set WshShell = WScript.CreateObject( "WScript.Shell" )
> WshShell.Run ("""\\\server_name\share_name\****.exe""") "
>
> Though obviously, i need the part to specify that it will only start a
folder, which is created during the installation, is not present.

    set fso = createobject("scripting.filesystemobject")
    if ( fso.folderexists("C:\folder to test") ) then
        Set WshShell = WScript.CreateObject( "WScript.Shell" )
        WshShell.Run ("""\\\server_name\share_name\exe to run.exe""")
    end if

/Al



Relevant Pages

  • RE: SBS 2003 CompanyWeb install restore
    ... Select Windows Small Business Server 2003 and then click Change/Remove. ... select Microsoft SQL Server Desktop Engine ... If AV software install any extra IIS web site in IIS, ... Location of the MSSQL$SHAREPOINT folder is determined by ...
    (microsoft.public.windows.server.sbs)
  • RE: Companyweb errors
    ... right click Companyweb to choose Properties, ... > point the SBS Integrated setup program to the folder for the 'SP1 CD3' ... > 829114 How to remove and how to install the Windows Small Business Server ...
    (microsoft.public.windows.server.sbs)
  • RE: SQL error msg?????
    ... > Server Operators: Modify, Read & Execute, List Folder Contents, Read, Write ... If you find that MDAC files are missing or have ... > you install SharePoint Portal Server 2003 or Windows SharePoint Services ...
    (microsoft.public.windows.server.sbs)
  • RE: Fax monitor incoming + outgoing calls?
    ... The detail steps to install share fax client as follows: ... Start server management console, locate Client Computers node, click ... To the folder redirection GPO issue: ... How to stop Folder Redirection in Windows Server 2003 and in Windows 2000 ...
    (microsoft.public.windows.server.sbs)
  • Re: File and printer sharing suddenly broken
    ... networking properties, uninstall file and print sharing, reboot and install ... Server is active on ... Modify This folder, ... I double click Everyone and see a long list of allowed permissions; ...
    (microsoft.public.windowsxp.security_admin)