- amiga history guide Supporting Amiga and compatibles since 1997 -
-
-
- banners - disclaimer - faq
 
- - -
- -     -
-
recent updates
amiga history
features
amiga models
magazines
technical
interviews
internet links
downloads

 

-

© 1997-2006
Gareth Knight
All Rights reserved

-

 
-

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

-

Latest updates to the Amiga History Guide. (more)


-
· Amiga Hardware
· Amiga History.de
· Amiga Magazine Rack
· Amiga-news(en)(de)
· Amiga.org
· Amiga World
· AmigaOS 4.0
· Amiga University
· Commodore Retrobits
· Dave Haynie archive
· Lemon Amiga
· MorphOS Support
· morphos-news.de

-

Other interesting items in the archive!


-  

--

home · changes · amiga history · features · amiga models
magazines · technical · interviews · internet links · downloads

Hosted by:
Bambi - The Amiga Web Server