#Redirection
5 messages in this thread
I make a little script file that will create files of each directory
listing. How do I make the file execute by just typing the filename and not
"execute filename"? Is there a way?
R. Niklos
Well, you could alias it or write an ARexx script (and use the script with
WShell).
Sure. Move your script into the S: directory. Assuming your script file
is named "Doit", CD to S: and type:
Protect Doit +s
That sets the "script" bit on the file. Assuming S: is part of your PATH,
now whenever you type DOIT, the machine will er, uh, do it! No more need
to EXECUTE DOIT.
If you are running under the AmigaDOS shell (as it came with 1.3), you just
have to use the protect command to turn on the S bit. I think it is:
Protect filename +s
After that, just type filename from the AmigaDOS shell and the script will
be executed.
If you are running under a different shell, just ignore me!
73, Kelly