
! script name: turbopost.d/turboexecute

!A
!A NAME:
!A
!A 	turboexecute
!A
!A DESCRIPTION:
!A
!A 	This script executes a TurboPost command file.  There are no questions,
!A 	it automatically executes the command file that has been created
!A 	and creates a tapefile.
!A
!# see also - htdocs/help.d/millturbo.htm

stat=ChangeLabelStr("ScriptNameStatus","Function: turboexecute ")

DIM Answer$[256]
DIM Destination$[256]
DIM Command$[256]
DEG

DeActivateUndo
StdWorkplane

Command$="EXEC: "

Command_type=InterpretCmd(Command$)

Stat=ListTapeFile("tapefile","tapelist",1)

LOAD "turbopost.d/turbocontrol"

Leave:!
IF (NOT LEN(Destination$)) THEN
	 LOAD "typecontrol"
ELSE
	 LOAD Destination$
END IF
END
