home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Between Heaven & Hell 2
/
BetweenHeavenHell.cdr
/
500
/
447
/
commnd.doc
< prev
next >
Wrap
Text File
|
1987-05-28
|
8KB
|
185 lines
USING THE COMMND COMMAND
The COMMND command, <F10>, is so different from the other Command
Bar commands and yet so useful, we decided to devote a file
exclusively to its use.
ShortCut was designed to save you time and make using DOS easier.
Sometimes ShortCut commands cannot do everything you want to do.
Suppose you want to copy MYFILE.TXT on drive A to drive B and you
want the new copy of the file to be named YOURFILE.TXT. You could
use ShortCut to copy the file to drive B and then rename that
file, but that involves two steps. If you are an experienced DOS
user, you might view two steps as not much of a time saver when
you know DOS is capable of handling it in one step.
The COMMND Command
ShortCut provides a way to enter any DOS command without
using the usual ShortCut commands. The COMMND command
provides the same service as the standard DOS input line.
Press <F10> to move to the COMMND command box and hit
<Enter>. The message line will disappear and in its place
you will see what appears to be the usual DOS prompt. This
is the command line.
You can enter any DOS command here. When you press the
<Enter> key, your DOS command is sent directly to COMMAND.COM
without being acted upon by ShortCut. The ShortCut screen
disappears and you will see a blank screen except your
command following the normal DOS prompt and then the normal
screen output that DOS displays when executing commands it
receives. When DOS is finished, the ShortCut screen reap-
pears. You might want to have PAUSE on if you want to read
all of the DOS screen output.
If we go back to our example, you could use COMMND to send
this command to DOS:
COPY A:MYFILE.TXT B:YOURFILE.TXT
If you are familiar with the syntax of DOS commands, you may
consider this simpler and quicker than using ShortCut's COPY
and RENAME commands to accomplish the same thing.
Editing the Command Line
Anytime before you press <Enter> to send your command to DOS
you can edit what you have typed on the command line with the
following keys:
Backspace key Deletes the character to the left and moves
the cursor one space to the left.
Left arrow Moves the cursor one space to the left.
COMMND.DOC - 1
Right arrow Moves the cursor one space to the right.
Del key Deletes the character the cursor is on.
Ins key Turns on insert mode. All typed characters
are inserted in the line and characters to the
right of the cursor are pushed further to the
right until insert is turned off.
F6 Copies the filename pointed at by the screen
arrow to the command line.
F7 Moves the cursor to the beginning of the
command line.
F8 Moves the cursor to the end of the command
line.
Ctrl-Esc Cancels the command line and exits the Command
Bar.
The above editing keys are available for you to use any time
ShortCut prompts you for information. For example, you can
use them when you enter a filename for the RENAME command.
In addition, ShortCut imitates the usual DOS editing keys.
In the following descriptions, the template refers to the
last command that was sent to DOS.
F1 Each time <F1> is pressed one character from the
template is copied to the screen.
F2 Waits for the next character you type and then
copies all characters up to the first matching
occurrence of that character in the template to the
screen. If there is no matching occurrence,
nothing happens.
F3 Copies all the remaining characters from the
template.
F4 Waits for the next typed character and then skips
over all characters in the template until it
reaches the first matching occurrence of that
character. If there is no match, nothing happens.
F5 Enters the current command line as the new tem-
plate, clears the command line, and allows con-
tinued editing of this new template.
Esc key Aborts the current command line and begins a new
one. The current template remains the same and
restarts at the first character.
COMMND.DOC - 2
Whenever you try to type beyond the right edge of the screen,
the command line will scroll to the left once space for each
character you type. You may enter no more than 128 charac-
ters including spaces.
Copy Filename to Command Line
ShortCut gives you an alternative to typing a filename on the
command line if the filename is visible in the Directory
Window. Point the screen arrow at the filename, then hit
<F6>. The filename will appear on the command line. Remem-
ber you can use Locate File (Alt-L) to move the screen arrow
to the filename rapidly.
Command Buffer
ShortCut remembers the last ten commands you sent to DOS and
will display them one at a time on the command line. You can
move back through this list of commands by pressing <F9>.
Press <F10> to move forward.
Once you have the command you want displayed on the command
line, you are free to edit it if you wish. Hit <Enter> to
send the command to DOS.
Entering Multiple Commands with COMMND
Sometimes you will want to enter more than one command.
There is a way you can make ShortCut disappear so you can
enter commands using the usual DOS screen.
Before you type in your command on the command line, press
<Alt-D> for DOS Screen. The ShortCut screen will disappear
and you will see the normal DOS screen. You can now type in
as many DOS commands in succession as you want. You will
still be able to use the command line editing keys and the
Command Buffer. When you want the ShortCut screen to return,
press <Alt-D> again.
Default Drive
The COMMND command uses the Default drive, not the Display
drive. The Default drive box is beneath the Display drive
box. You can change the Default drive by moving the screen
arrow to this box and then pressing a letter of any drive on
your system. Of course, you can always preface filenames
with a drive specifier just as you can when you are using DOS.
COMMND.DOC - 3