The script file is simply a text file that includes a number of
commands that are executed. The PC calls them batch files, but they
are basically the same thing. This covers a basic tutorial of what
you could do.
The first thing you have to do is load a text editor such as ED
by opening a CLI window and typing:
ED RAM:SCRIPTFILE
The program will now load.
In the ED window type:
Echo "Hello this is a script file that lists all the assigns
that have been made."
Assign Temp: DH0:Temp/
ENDCLI
Now select SAVE from the pull-down menus. The file should now be
save to ram. If you type the following into a CLI window then your
script file can be executed.
EXECUTE RAM:SCRIPTFILE
How do I get the script file to load when I double-click on
it?
Once you have created the file above, load ICONEDIT located in
the Tools drawer or by typing ICONEDIT in a CLI window. Draw an
icon and make sure it is a PROJECT icon by pressing right-Amiga and
4. Select SAVE AS from the menus, or press right-Amiga and A.
Double-click on the file that you wish to save and exit the
program.
Now, click once on the scriptfile icon in RAM and select
INFORMATION from the pull-down menus. A screen should appear
showing the icon in a little window. Click on default Tool and type
in ICONX in the space provided. Now save the file and
double-click on the icon.
You will find that it will now be executed without going through
the Shell. Well done! You have now created a script file.
How do I turn my script file into a command?
Type in a Shell window: Protect RAM:SCRIPTFILE +s
This will add what is called a protection flag. Now when you
enter SCRIPTFILE from the Shell you will get a list of all the
assigns that you have. Don't forget to copy this command to the C:
drawer on your system disk.
BACK
|