tcl.!.apdos

Verb: TCL1/DOS, Releases: AP/DOS

Submits a DOS command to shell.

Syntax

!{ }{DOS.command} {parameters} {< from.file} {> to.file}

Description

creates a DOS shell and executes any DOS command.

The '<' and '>' symbols may be used to redirect standard input and output to and from DOS files. If no DOS command is specified, a DOS shell is created and entered. The (DOS) 'exit' command and <ctrl>+d both return control to the Pick environment.

The following synonyms for the '!' verb are available: '.', 'dos', 'pc', 'shell' and 'shl'.

The form, '!DOS.command' does not require a space after the '!'.

'DOS.command' is any DOS command.

'from.file' is the file to get input from.

'to.file' file to send standard output to.

By creating macros which contain the '!' verb, almost any DOS command may be made accessible from TCL, provided that the name of the macro does not conflict with the name of a Pick verb.

Example

!dir /w
Displays files in the current DOS directory using the 'w' option for
wide display.

pc dir >dir.tmp
Redirects output from the 'dir' command to the DOS file
'dir.tmp'. ('pc' is a synonym for '!').

Shell Macros:

Macros in the master dictionary make almost all DOS commands available from
Pick. For example:

Pick file : md
Pick item-id: dir

01 n
02 !dir

This macro creates a DOS shell and executes the 'dir' command. See
'create-macro' and 'macros, definition.

Pick file : md
Pick item-id: myshell

01 n
02 !cd \mydir

This changes the default directory to be the subdirectory '\mydir'.

See Also

Command Name Type Description
tcl.. Verb: Access Invokes DOS shell.
tcl.shl Verb: Access Invokes DOS shell.
tcl.pc Verb: Access Invokes DOS or Unix shell.
tcl.dos Verb: Access Invokes DOS shell.
tcl.shell Verb: Access Invokes DOS shell.
macros Definition Overview of macros.
tcl.exec Verb: Access Changes to specified abs area.
tcl.cd Verb: Access Change directory.
tcl.dos.shell Verb: Access Enables or disabels ability to shell out to DOS.
tcl.dir.apdos Verb: Access DOS directory utility.
tcl.shl.link Verb: Access
tcl.shell.link Verb: Access

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.