I'm trying to execute a dos batch file with the following commands:
C:\hysplit4\exec\hyts_std
C:\hysplit4\exec\trajplot -iof12jun0923 -ojun12plot -v1 -l12 -m3 -a5
c:\hysplit4\exec\ascii2shp -d jun12plot lines < GIS_traj_ps_01.txt
The first line executes a meteorological model that develops a back trajectory or path of an air parcel. It looks for an input file named CONTROL and uses its information to execute. If it can't find the input file it defaults to asking for input via keyboard.
The second line takes the output file of the met model and creates a postscript graphic file of the trajectory and creates two additional output files (one of them GIS_traj_ps_01.txt) for conversion to an ESRI GIS shapefile.
The third line takes the file GIS_traj_ps_01.txt and converts the data into an ArcGIS shape file which can be imported into ArcGIS. This system comes with a GUI which can handle one trajectory at a time, but to do an adequate analysis, I need to do several hundred. Ideally, I would like to automate this process and loop through the process. I have tried using Excel VBA's shell function for these and got nowhere. The hyts_std executable could not find the CONTROL file and defaults to asking for keyboard input.
I can get all three commands to work properly when entered manually into a DOS window from the keyboard. They can find the necessary input files and execute properly. When I put them into a single bat file, however, they don't work. I use the latest version of Windows XP at work and Windows Home Premium at home. Any suggestions? Many thanks in advance!
ErikG