Passing Batch File Names [message #62296] |
Tue, 02 September 2008 08:41 |
Trae
Messages: 23 Registered: May 2007
|
Junior Member |
|
|
Hey everyone,
I have a code that calls a batch file to assign variables that I want
the main level program to have. The names of the variables and the
number may change randomly, and not by me, so I didn't want to use a
procedure where I would have to change it every time an alteration was
made in the save file.
Now, I need to execute a batch file whose name is passed by another
program. I've used call_method, call_procedure, and call_function,
but I see nothing like call_batch.
My current fix is the following:
spawn, 'cp ' + in_name+' temp_name.pro'
@temp_name.pro
This doesn't seem very clean, but it makes all of the variables
available to the main level.
Any brighter ideas?
-Trae
|
|
|