It works for the most part but in the section posted below i have achieved a complete FAIL situation. the string concat is not right. Please point it out as i am oblivious to it atm.

 Code:

Function Button_Click()

 If $Form.OpenFileDialog.ShowDialog() = $System.DialogResult.OK

  DIM $message, $file1, $file2
  $file1 = $Form.OpenFileDialog.Filename
  $file2 = SUBSTR($Form.OpenFileDialog.Filename,0,LEN($Form.OpenFileDialog.Filename) - 3)+".cmp"
  $message = "Please wait..."

  $Cmd = 'CMP.exe '     ; base command
  $Cmd = $Cmd + '"' + $file1 + '" '   ; add the source argument
  $Cmd = $Cmd + '"' + $file2 + '" '     ; add the dest argument
  $Cmd = $Cmd + '-FLAG1 flag2 flag3'       ; add switches/flags

  Shell $Cmd

  $Textbox.text=$Textbox.text+@CRLF+$message+@CRLF+@CRLF+$file1+@CRLF+@CRLF+$file2

 EndIf

EndFunction



Edited by morpheus_exegis (2010-05-25 09:28 PM)
_________________________
--------------------------------------------
Morpheus Exegis
SAND TEK