Thank you. This what I have now (with your function), but if gives me an "Argument not optional" message with Find_Files (STDOutResults). What am I doing wrong ?
Code:Option Explicit Private Sub Command1_Click() Dim wsh As IWshRuntimeLibrary.WshShell Dim wshExec As IWshRuntimeLibrary.wshExec Dim STDErrResults As String Dim STDOutResults As String Set wsh = New WshShell Set wshExec = wsh.Exec("C:\unrar.exe x " & "D:\Archives\My.Video.part1.rar" & " " & "D:\") STDOutResults = wshExec.StdOut.ReadAll STDErrResults = wshExec.StdErr.ReadAll If STDErrResults = "" Then Find_Files (STDOutResults) Kill Find_Files End If End Sub




Reply With Quote