@echo off set loadfile=%1 make load_%loadfile:~0,-2% :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Name : load.bat :: Purpose : Load Wixel application from within Eclipse and view result in a console window :: Method : Strip .c from resource name argument to get APPNAME and run "make load_APPNAME" :: Setup : In Eclipse select Run > External Tools > External Tools Configuration... :: Main tab: Name: Load Wixel App (or any) :: Location: point to this batch file, load.bat, on your local drive :: Working Directory: point to wixel-sdk on your local drive :: Arguments: ${resource_name} :: Usage : With the main .c file active, use the external tools button to run Load Wixel App :: Or select Run > External Tools > Load Wixel App :: For example, with blink_led.c file selected, the defined tool will open CMD.exe :: in a Console window and run "make load_blink_led", showing the output :: Author : Z Vania - October 2011 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::