Please enable JavaScript to view this site.

ZTERM

This escape sequence allows ZTERM 2000 to execute a Windows program or batch file. Unlike the Execute or Print Windows File escape sequence, this escape can include parameters for the program.

Parameter

Value or Description

Lead in

CHR$(27) CHR$(22)

Command

null terminated

Termination

CR if operation succeeded

^C if program or batch file not found

 

This escape sequence accepts embedded environment variables for the command.

Example

PRINT CHR$(27);CHR$(22);

PRINT "NOTEPAD C:\AUTOEXEC.BAT";CHR$(0);

ON ERROR GOTO ERRORS

INPUT "";A$

END

 

ERRORS:

    IF ERR = 1 THEN PRINT "Error executing Windows program"

END

 

Please note that this sequence is not supported on Windows CE versions of ZTERM.

Also See