6. Script Files
AmigaDOS Inside and Out
As you can see the changes affect more than the output. The alias
command can produce many other changes. Alias Alias Alias Alias
Proml Prom2 Prom3 Prom4
Prompt Prompt Prompt Prompt
"*e[32m*e[43m%s> " "*e[42m*e[31m%s> " "*e[41m*e[33m%s> " "%Enter Task*n%s*n- "
Enter echo "*ec" to return to the normal colors.
4. Print a file on the printer. At the same time the computer should still be available for use. The file should print in the background. Alias Print run copy to prt:
[]
clone
The brackets act as placeholders for the parameters entered with
print. The new command must be given the name of the file it should print out. For example: Print sys:s/startup-sequence
5. Here is a command that makes a file "invisible" so that it isn't displayed when aDlRorLlST command is EXECUTEd. The hide command hides the specified file from these commands:
Alias Hide protect
[]
+h
The PROTECT command sets the h status bit of the file. The
computer must have at least Kickstart 1.3 to use this command. This h bit is ignored when Kickstart 1.2 is used.
6. As in example 5, the status bit s can be set. The following line must be entered:
Alias SBit protect
[]
+s
When the s bit is set you can EXECUTE a script file without invoking the Execute command.
7. There is already an alias command in your Shell-Startup file. It is the xCopy command. The same principle can be used for deleting:
Alias xDelete delete
[]
all
After entering this line a directory can be deleted. Enter xDelete and a directory in the Shell.
8. The AmigaDOS commands can be shortened with the alias command:
194