<html><body>
<DIV>Hi Brian,</DIV>
<DIV>Try changing your command in the .bat file from: </DIV>
<DIV>grads -blc exec batch.gs </DIV>
<DIV>to </DIV>
<DIV>grads -blc 'batch.gs'</DIV>
<DIV> </DIV>
<DIV>
<DIV>Test it by double clicking the .bat file. Your .gs file should fire right up!</DIV></DIV>
<DIV> </DIV>
<DIV>Also you can create a new directory not in the Program Files path and place all your scritps there (c:/grads_stuff/scripts). Create a seperate directory for all you output images (c:/grads_stuff/output). Just be sure to include the full path in your script to the output directory.</DIV>
<DIV> </DIV>
<DIV>Also make sure GRADS is in you path (in this way your machine will know where the GRADS executable lives):</DIV>
<DIV> </DIV>
<DIV>Control Panel>System>Advanced>Environmnet Variables>System Variables>Edit</DIV>
<DIV>Scrool down and select Path, then Edit. Go to end of the Variable Value line and type in:</DIV>
<DIV>; C:\Program Files\PCGrADS\win32e</DIV>
<DIV> </DIV>
<DIV>Then use windows scheduling task to execute the .bat file. It should find GRADS just fine. The output image will land in your output directory. I do it all the time. </DIV>
<DIV>--<BR>Thanks, <BR>Mark</DIV>
<DIV> </DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">-------------- Original message -------------- <BR>From: Brian Gaze <brian.gaze@NTLWORLD.COM> <BR><BR>> Hi, <BR>> <BR>> I'm trying to schedule a grads script to run on a Windows server. I'm trying <BR>> to call the script from a Windows batch (.bat) file. The batch file contains <BR>> the following <BR>> <BR>> grads -blc exec batch.gs <BR>> <BR>> This opens grads, and the following error message is generated: <BR>> <BR>> EXEC error: missing file name <BR>> <BR>> The .gs file contains the following script (and is intended to generate a <BR>> gif image and then close GRADS): <BR>> <BR>> 'open model.ctl' <BR>> 'd ps' <BR>> 'printim bg.gif gif' <BR>> 'quit' <BR>> <BR>> NOTE: both files are in the C:\program files\PCGrADS\win32e directory. <BR>> <BR>> I'm completely new to GRADS but have looked through the tutorial and c
an <BR
>> find nothing to help. <BR>> <BR>> Have I misunderstood how this should work, or is there a problem with the <BR>> syntax I am using? <BR>> <BR>> Thanks for any help. <BR>> <BR>> Brian Gaze </BLOCKQUOTE></body></html>