I'm trying to use the EXEC command to call a .bat file. The .bat file runs simple dos commands to add a table to one of the directories the program uses.
I'm calling the command inside a file using the vortex language.
Here's a snippet of my code:
<script language=vortex>
<db=c:\MORPH3\Texis\directory_1s\>
<TIMEOUT = -1>
timed out
</TIMEOUT>
<a name=main PUBLIC>
<EXEC C:\morph3\texis\scripts\test_add_table.bat></EXEC>
</a>
</script>
Here's the contents of the .bat file:
cd C:
cd MORPH3
cd Texis
cd directory_1s
PAUSE
c:\morph3\addtable items_all.tbl
PAUSE
cd ..
cd directory_2s
c:\morph3\addtable items_all.tbl
PAUSE
cd ..
cd ..
ECHO "Made it here"
PAUSE
-----
The table items_all.tbl is a custom table that is dropped every time by the vortex script because truncating it was not resizing the table. This caused it to become very large and eventually vortex.log filled up.
My question is -- am I using the <EXEC> command incorrectly? Why will it not call the .bat file and run the simple dos commands from the DOS prompt?
Any help is appreciated.
Thanks.
I'm calling the command inside a file using the vortex language.
Here's a snippet of my code:
<script language=vortex>
<db=c:\MORPH3\Texis\directory_1s\>
<TIMEOUT = -1>
timed out
</TIMEOUT>
<a name=main PUBLIC>
<EXEC C:\morph3\texis\scripts\test_add_table.bat></EXEC>
</a>
</script>
Here's the contents of the .bat file:
cd C:
cd MORPH3
cd Texis
cd directory_1s
PAUSE
c:\morph3\addtable items_all.tbl
PAUSE
cd ..
cd directory_2s
c:\morph3\addtable items_all.tbl
PAUSE
cd ..
cd ..
ECHO "Made it here"
PAUSE
-----
The table items_all.tbl is a custom table that is dropped every time by the vortex script because truncating it was not resizing the table. This caused it to become very large and eventually vortex.log filled up.
My question is -- am I using the <EXEC> command incorrectly? Why will it not call the .bat file and run the simple dos commands from the DOS prompt?
Any help is appreciated.
Thanks.