#MAKELINK ADos Command
12 messages in this thread
Could someone please give me some advice on the "MAKELINK" ADos command?
I recently read about in Amiga World Jan. '93 "Digging into DOS" article.
It seemed like the perfect solution to Icons with "MutiView" and "More".
I added the following to my User S-S:
MAKELINK More DH0:c/MuchMore
MAKELINK dh0:Utilities/More DH0:c/MuchMore
MAKELINK MultiView DH0:utilities/amigaguide/amigaguide
I get a report of "Object in Use" when the S-S runs OR if I enter it
directly into a SHELL after the boot is complete. The info. in the C=
user's guide is sketchy and I can't figure it out. All programs should be
on the same volume, namely DH0: ("System:") except for "MultiView which as
a ADos 2.1 user I do not have.
Any help would be greatly appreciate.
Tim Budd
An Amigan in Tokyo
Are you sure the error you're getting is "object in use"? You should be
getting an "object already exists", since the MAKELINK command actually creates
the link on your disk — it's *not* like ALIAS.
>Are you sure the error you're getting is "object in use"? You should be
>getting an "object already exists", since the MAKELINK command actually
>creates the link on your disk — it's *not* like ALIAS.
Yes, very sure. Of course I will put the statments back in the User S-S
and check again 🙂
Regardless, do you have any suggestions how I can more effectively use the
MAKELINK command to redirect Icons which call for "MultiView" to use
"AmigaGuide" and those asking for "More" to use "MuchMore"?
Thanks for the interest.
Tim Budd
An Amigan in Tokyo
>Regardless, do you have any suggestions how I can more effectively use
>the MAKELINK command to redirect Icons which call for "MultiView" to use
>"AmigaGuide" and those asking for "More" to use "MuchMore"?
have you tried a commidity called "ToolAlias"? with it you can pick what
icon tools it should look out for and what to replace them with.
for example, i've replaced any more, muchmore, etc with most. it will look
out for tools such as ":c/muchmore" and run most instead. i also have any
reference to amigaguide replaced with ppguide, since i powerpack any guide
file that i keep on disk for a while.
i think you can find it in the amigauser forum.
bob
– zooming by in his TIE Interceptor on AutoPilot
Tim,
makelink should never be in your startup-sequence or your user-startup.
Makelink is a one-time only command that you should use to create a file
on your harddisk, or floppy, so that whenever a request for a program by
that name occurs, it automagically redirects the request to the second
program. It only has to be done once, never again, unless it should
somehow be deleted. It is not like the alias command in the shell, where
you have to run it each time you open a shell. A physical file is
created, although a short one with only a pointer to the other file.
I hope this helps.
"You do trust me, don't you? Of course you do."
— "To Play the King" (BBC)
Brian;
I use makelink in my SS to get around that user-startup. I like to have a file
called USER-START in my WBSTARTUP drawer so I can use it or not. I do a
makelink to have the computer put additional lines in that file vs.
user-startup in s:..
Lately I have noticed that my USER-STARTUP file is being replaced! after I
deleted it…
Is the problem with MAKELINK being in my startup??
Than, jim
MAKELINK creates a directory entry that allows you to refer to a file by a
different name. As such, it is only necessary to use the MAKELINK command once,
since the directory entry will be left on the disk. Having a MAKELINK in your
startup sequence only does its thing the first time you execute it.
If the directory entry and the file you want to link to both exist, you should
get an 'object is in use' message.
-larry
Some time last year I had posted some questions regarding MAKELINK ( under
2.04) and was told ( and confirmed ) that it was actually creating a copy
of the entire file not just a pointer to it. Was this changed in 2.1
etc..?
Thanks
Jim
As far as I know, it has not changed. There is no actual copy of the file, but
only another directory entry, pointing to the same data. One might be misled
when thinking about 'DELETE' but a quick look with Sectorama or DiskX or DEdit
will show what is really happening.
-larry
>"You do trust me, don't you? Of course you do."
Wellllllllll
>makelink should never be in your startup-sequence or your user-startup.
In the "Digging in to DOS" article AMigaWorld January 1993 page 51-52,
Sheldon Leemon states:
"… but an easier way is to create links in your user-startup file:
MAKELINK C:More SYS:Utilities/More
MAKELINK C:MuchMore SYS:Utilities/More
MAKELINK C:Less SYS:Utilites/More
This way, a project icon that looks for any of the default tools named
above will be directed to the SYS:Utilites/More program. …."
Is there something wrong with what was said in that article???
Thanks for the interest and any follow-up comments.
Tim Budd
An Amigan in Tokyo
Tim,
re: "Is there something wrong with what was said in that article???"
Yes.
Tim,
yes. Makelink is a one-time thing, period.
"You do trust me, don't you? Of course you do."
— "To Play the King" (BBC)