Previous Next Chapter

SETCLOCK

Sets or reads the battery backed-up hardware clock.

Format

SETCLOCK LOAD | SAVE | RESET

Template

LOAD/S,SAVE/S,RESET/S

Location

C:

SETCLOCK SAVE sets the date and time of the battery backed-up hardware clock (if your system has one) from the current system time, which is set with the Time editor or with the DATE command. SETCLOCK SAVE is typically used after a DATE command.

SETCLOCK LOAD sets the current system time form the battery backed-up clock. In systems using AmigaDOS Release 2 or later, this is done automatically during the boot process.

The RESET option resets the clock completely. Use this option if the clock is accidentally turned off or LOAD and SAVE do not appear to work correctly.

Example:

1> DATE 22-Jan-93 07:15:25
1> SETCLOCK SAVE

saves the date, January 22, 1993, and the time, 7:15 a.m., to the battery backed-up hardware clock. When the system is booted, the system clock is set with the time saved in the hardware clock.

Some Amiga models do not have battery backed-up clocks unless an expansion unit has been installed.

See also: DATE

SETDATE

Change the timestamp of a file or directory.

Format

SETDATE <file | pattern> [<weekday>] [<date>] [<time>] [ALL]

Template

FILE/A,WEEKDAY,DATE,TIME,ALL/S

Location

C:

SETDATE changes the timestamp, the date and time of the creation or last change, of a file or directory. SETDATE <file> changes the date/time of the file to the current system date/time. SETDATE ALL changes the date and time of all the files and subdirectories matching the pattern entered.

The system clocks are not affected by SETDATE.

You can use output from the DATE command as input to SETDATE.

Example 1:

1> SETDATE TestFile

changes the date and time associated with TestFile to the current date and time.

Example 2:

1> SETDATE TestFile 01-04-91 13:45:32

Changes the date and time associated with TestFile to April 1, 1991, 1:45 p.m.

See also: DATE

SETENV

Sets a global variable.

Format

SETENV [<name>] [<string...>]

Template

NAME,STRING/F

Location

Internal

SETENV with no arguments lists the current global variables.

SETENV with <name> and <string> arguments creates a new global environment variable. The first word after SETENV is taken as the <name>. Everything else on the command line is taken as the <string> argument. Quotation marks are not required.

Global variables are stored in the ENV: directory and are available to all processes. However, if a local variable (defined by SET) and a global variable share the same name, the local variable is used.

Environment variables are called by scripts or other commands by including a dollar sign ($) in front of the variable name.

To remove a global variable definition, use the UNSETENV command.

Example 1:

1> SETENV Editor Extras:Tools/MEmacs

creates the environment variable Editor That can be used with the MORE utility. This specifies the editor as MEmacs, located in the Tools drawer of EXTRAS:. The variable Editor is available in any Shell.

Example 2:

1> SETENV Editor C:ED

same as above, only the editor specified is ED.

1> ECHO $Editor
C:ED

See also: GETENV, UNSETENV

SETFONT

Changes the font of the current Shell.

Format

SETFONT <font> <size> [SCALE] [PROP] [ITALIC] [BOLD] [UNDERLINE]

Template

NAME/A,SIZE/N/A,SCALE/S,PROP/S,ITALIC/S,BOLD/S,UNDERLINE/S

Location

C:

SETFONT lets you change the font used in a particular Shell window, overriding the System Default Text setting specified in the Font editor. SETFONT is only effective in the window in which it is invoked.

You must specify both a font name and a size when using the SETFONT command. The other options are:

SCALE

Enables bitmap font scaling.

PROP

Allows proportional fonts.

ITALIC

The font is italic.

BOLD

The font is boldface.

UNDERLINE

The font is underlined.

Invoking SETFONT clears the Shell window of its current contents and displays a new prompt, in the new font, at the top of the window. Using proportional fonts in a Shell window is not recommended because the variable character spacing prevents columns of information from lining up and makes editing the command line difficult.

Example:

1> SETFONT topaz 11 BOLD UNDERLINE

The Shell window clears and the new prompt is in 11 point Topaz, underlined and boldface.

SETKEYBOARD

Sets the keymap for the Shell.

Format

SETKEYBOARD <keymap name>

Template

KEYMAP/A

Location

C:

SETKEYBOARD specifies the keymap used by the current Shell. The available files are listed below:

Keymap

Keyboard

cdn

Canadian Français

ch1

Suisse

ch2

Schweiz

d

Deutsch

dk

Dansk

e

Español

Top Previous Next Chapter