WB Icon —> CLI script
21-May-86 23:10:01
Sb: #19488-WB Icon —> CLI script
Fm: Tom Casey 74405,303
To: Jim Oliver 76515,2457
This message turned up in search, but its forum couldn’t be identified from the original transcript, so it may not be linked into its thread.
You could write a workbench program that executes the execute
function. See page 2-16 of the AmigaDOS Developer's Manual. You
call the DOS Execute function from within your program.
.
success = Execute(commandString,input,output);
.
where
success – boolean
commandString – string
input,output – file handles
.
success = Execute("EXECUTE script.file",NULL,NULL); should do the
trick. If your script file has output, you may need to open a
console window and pass its handle as the output specification.
See page 2-8 for description of the Open() funcion. You should be
able to double click this program's icon and have it execute the
script.file. Hope this is what you were looking for.