
! script name: filing.d/exit
! topic: exit synergy

!A
!A NAME:
!A
!A 	Exit
!A
!A DESCRIPTION:
!A
!A 	This script will exit synergy.
!A
!B INSTRUCTIONS:
!B
!B 	ARE YOU SURE Yes or No: Enter "Y" to leave, enter "N" to abort the exit.
!B

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

DIM Destination$[256]
DIM Answer$[256]

Stat=SetInputFormat("a1=",",Y,N,")
Stat=SetEqualsValue(0,"y")
Stat=GetValue("ARE YOU SURE Yes or No",Answer$)
IF (ExitScript(Destination$)) THEN Leave

IF Answer$="Y" THEN
	KillSelf
END IF


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