@echo off
@rem load in a test data file. Supply the full path to the file as %1
@rem
if "%1%"=="" goto usage
if exist %1% goto doit
@echo file %1% does not exist
@goto usage
:doit
@set LOAD_DIR=/Windchill/loadFiles
@set MAP_FILE=%LOAD_DIR%/csvmapfile.txt
java wt.load.LoadFromFile -t , -g create -m %MAP_FILE% -d %1%
goto end
:usage
@echo Must supply a file-name to load data from
@echo usage:
@echo loaddata full-path-to-load-file
:end