Something like this ?
Const OverwriteExisting = True
Set ObjShell = CreateObject("WScript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
rc = objShell.Run("autodownload /
/c:\ides\ides.exe",1 ,True)
If rc <> 0 Then
WScript.Echo "Return code from autodownload=" & rc
WScript.Quit
End If
rc = objShell.Run("start c:\ides\ides.exe",1 ,True)
If rc <> 0 Then
WScript.Echo "Return code from ides=" & rc
WScript.Quit
End If
objFSO.DeleteFile "c:\ides\ides.exe"
wscript.timeout = 1000
objFSO.MoveFile "c:\ides\*.*" , "c:\Program Files\Sophos SWEEP for NT\", OverwriteExisting
wscript.quit
Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244