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
- Next message: Michael Harris \(MVP\): "Re: Creating folder on remote server"
- Previous message: Steven: "Add User and Choose Groups"
- In reply to: Campbell: "Launch Exe file if folder does not exist"
- Next in thread: Campbell: "Re: Launch Exe file if folder does not exist"
- Reply: Campbell: "Re: Launch Exe file if folder does not exist"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Michael Harris \(MVP\): "Re: Creating folder on remote server"
- Previous message: Steven: "Add User and Choose Groups"
- In reply to: Campbell: "Launch Exe file if folder does not exist"
- Next in thread: Campbell: "Re: Launch Exe file if folder does not exist"
- Reply: Campbell: "Re: Launch Exe file if folder does not exist"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|