; Menu file for wbt extension

;AMAZINGLY IMPORTANT NOTICE!!
;This file is automatically overwritten during upgrade
;or re-install of the WinBatch product.  If you make
;changes to it...SAVE YOUR BACKUPS...This file will
;be overwritten without notice.

;Updated for VISTA UAC Issues by using ShellExecute

Run with WinBatch     ; Runs the Winbatch Interpreter on this file
        f = strcat('"',CurrFilePath(),'"')
        ShellExecute("winbatch.exe",f, "",@NORMAL,"")

WinBatch Studio    ; Edit the Winbatch file
        a = FileItemPath ( "" )
        fc = ItemCount ( a , @tab )
        for j = 1 to fc
           file = ItemExtract ( j , a , @tab )
           fwquotes = strcat('"',file,'"')
           ShellExecute ( "WinBatch Studio.exe" , fwquotes, "",@NORMAL,"" )
        next
 
WinBatch Compiler  ;Run the WinBatch Compiler
        f=strcat('"',CurrFilePath(),'"')
        ShellExecute("WBCompiler.exe",f, "",@NORMAL,"")
                
   
  
