Hi Guys !
Once again it needed to be done and here it is. The full list of COMMAND.X integrated commands and examples on how to use them. I hope that once again it will make the X68000 less mysterious.
exit
===
Exits child process and returns to parent process.
cls
==
Clears screen.
dir
==
Lists contents of current directory.
copy
===
Copies file or files.
Examples:
copy A:\command.x b:\command.x - Copies command.x from A: drive to B:
copy command.x b: - Copies command.x from current directory to drive B:
copy *.* b: - Copies all files in the current directory to drive B:
del (erase)
========
Deletes file or contents of directory. Del acts the same as erase.
Examples:
del *.* - Deletes all files in current directory.
del test - Deletes file "test" or contents of directory test.
ren (rename)
=========
Renames file. Ren acts the same as rename.
Example:
ren autoexec.bat !Start.bat - Renames autoexec.bat to !Start.bat
chdir (cd)
======
Changes directory. Chdir acts the same as cd.
Examples:
cd b: - Changes to drive b:
cd - Shows current directory
cd .. - Go back one directory
cd bin - Change to Bin directory
mkdir (md)
=======
Creates directory. Mkdir acts the same as md.
Example:
mkdir test - Creates directory "test"
rmdir (rd)
======
Removes directory. The directory must be empty.
Example:
rmdir test - Removes directory test, but only if it is empty.
type
===
Displays file in ASCII mode.
Example:
type readme.txt - Displays readme.txt file in terminal
ver
==
Shows version of Human68k.
date
===
Change local date.
time
===
Change local time.
his
==
Show typed command history.
set
==
Sets environment variable.
Example:
set path=a:;a:\bin - Sets variable path to root and Bin directory
path
===
Defines default search patch for executable programs.
Example:
path=a:;a:\bin;a:\sys - Defines root, Bin and Sys directory as additional place to look for programs.
prompt
=====
Changes the shown path before command input to user specified text.
Example:
prompt GameSX Rulez: - Changes prompt to GameSX Rulez:
prompt - Changes prompt back to default
vol
==
Sets volume label for disk drive.
Examples:
vol a: - Show volume label of drive A:
vol a:Warez/s - Set volume label as "Warez" for drive A:
vol a:/c - Clear volume label for drive A:
break
====
Enables or disables CTRL+C to stop execution of programs.
Examples:
break on - Enable CTRL+C
break off - Disable CTRL+C
verify
====
Verifies written data to hard disk. Can be defined in config.sys
Examples:
verify on - Enable verification
verify off - Disable verification
ctty
===
Change the input/output device
Exaples:
ctty aux - Changes input/output to remote terminal on auxiliary port.
ctty con - Changes input/output back to the main terminal. Must be typed in remote terminal.
screen
=====
Changes screen resolution:
Examples:
screen 0 - Changes to 96 character 768x512 mode
screen 1 - Changes to 64 character 512x512 mode
temp
====
Define temporaty path. Can be very handy when copying files.
Example:
temp=a:\bin - Sets Bin directory as temporary
copy config.sys temp - Copies config.sys to temporaty directory
memfree
======
Show free memory
echo
====
Turns on or off displaying of commands when running bat file.
Examples:
@echo off - Disables displaying commands and only program output is shown.
echo on - Enables displaying commands.
echo GameSX - Displays "GameSX" message.
for
==
Performs repeaded execution of commands. The variable after %% can be any character. Criteria can contain one or more file specifications.
Exaples:
for %%X in (*.txt) to type %%X - Displays all txt files at once, which are in the current directory.
goto
===
Go to specified label in bat file.
Example:
echo off
:START
echo GameSX Rulez
GOTO START - Displays GameSX Rulez in infinite loop.
if
=
Performs conditional action. Can be very efficient when used with GOTO command.
Examples:
IF EXIST !Start.bat !Start.bat - Launches !Start.bat if it is found
IF NOT EXIST !Start.bat echo !Start.bat not found. - Displays message if !Start bat is not found
pause
=====
Pauses and waits for user to press any key to continue.
Example:
pause - Pauses and waits for user to press any key.
pause Success - Pauses, displays message "Success" and waits for user to press any key.
rem
===
Instructs lines in bat files beginning with rem to be treated as remarks.
Example:
rem Hello World
shift
===
Increase number of parameters to more than maximum standard ten for use in bat files. Usually they can be from %0 to %9. If you launch test.bat %1 %2 %3 %4 %5 %6 %7 %8 %9 %10 only %1 till %9 will be available. Use shift to shift them one higher and then %2 till %10 will be available.
Keep the scene alive !
Eidis