[comp.sys.amiga.tech] NCD on Amiga?

martijn@dnlunx.pttrnl.nl (Reinalda M.) (12/04/90)

Does anyone know if there's a change dir commando for the amiga
like the MS-DOS (bwaah!) Norton Change Dir (NCD). 
NCD creates an image of the hard-disk directory structure, so it
can immediately change to a given dir. Well, most of us are unhappy
enough to work with PC's in the (un)real world so you'll probably know
what NCD does.

Thanks in advance,
Martijn Reinalda.


  ***********************************************************************
  ** Keyboard error or no keyboard present. Press any key to continue. **
  **                                                              IBM. **
  ***********************************************************************
  **                  E-mail : martijn@DNLUNX.UUCP                     **
  ***********************************************************************           

blgardne@javelin.es.com (Blaine Gardner) (12/05/90)

martijn@dnlunx.pttrnl.nl (Reinalda M.) writes:

>Does anyone know if there's a change dir commando for the amiga
>like the MS-DOS (bwaah!) Norton Change Dir (NCD). 

I have no idea what NCD is supposed to do, but maybe you're looking for
what the PCD script that's part of 1.3 does. PCD "remembers" the
Previous Current Directory, so you can 

CD really/long/path/1
PCD really/long/path/2
PCD

and you're back in really/long/path/1. 

If you're looking for something fancier, Bill Hawes WShell ($40,
commercial product) has pushdir, popdir and swapdir commands so you can
manipulate a stack of directories.
-- 
Blaine Gardner @ Evans & Sutherland  580 Arapeen Drive, SLC, Utah 84108
blgardne@esunix.UUCP                       BIX: blaine_g
{decwrl, utah-cs}!esunix!blgardne          PLink: BlaineG
DoD #0046                          My other motorcycle is a Quadracer.

jnmoyne@lbl.gov (Jean-Noel MOYNE) (12/06/90)

>Does anyone know if there's a change dir commando for the amiga
>like the MS-DOS (bwaah!) Norton Change Dir (NCD). 

    The closest I can think of is atree, a shareware program I saw a 
unfinished (or limited?) version of once. It's more like a browser than a 
'ncd', but you get a graphical representation of the tree structure of 
your disk, and you can browse thru it doing the usual stuff (display file, 
copy delete, etc ...)

    By the way, it's not ncd but one of the nice features of Wshell that 
has been added to the shell in 2.0 is the ability to change to a directory 
by just typing it's name (no need for 'cd'). 

     And ncd has nothing to do with push and popdir, but you should check 
out WShell anyway, it's very good.

    (ncd just act like an evoluated cd if you use it as 'ncd dirname' (I 
believe it can even correct typing mistakes by going to the directory with 
the closest name to what you typed), and if you type ncd alone, it'll then 
display a graphical tree structure of your disk and you can change of dir 
using the arrows keys).

      JNM

--
These are my own ideas (not LBL's)
" Just make it!", BO in 'BO knows Unix'

andrew@teslab.lab.OZ (Andrew Phillips) (12/11/90)

In article <4411@dnlunx.pttrnl.nl> martijn@dnlunx.pttrnl.nl (Reinalda M.) writes:
>Does anyone know if there's a change dir command for the amiga
>like the MS-DOS (bwaah!) Norton Change Dir (NCD). 
>NCD creates an image of the hard-disk directory structure, so it
>can immediately change to a given dir. Well, most of us are unhappy
>enough to work with PC's in the (un)real world so you'll probably know
>what NCD does.

Unfortunately I have worked with MSDOS on and off for 8 years but I
haven't used NCD.  I presume it has a TSR part which stores an image
of the whole hard disk directory structure in memory.  Then the NCD
command itself accesses this so that you can change to another
directory immediately by not having to scan all the disk directories
in the specified path.

Fortunately the Amiga has a different disk format so that it does not
need to scan a whole directory to find an entry.  So when you do a 

    CD \APP\WIN\SYSTEM

under MSDOS, CD has to do three (linear) searches of three
directories.  (If one or more of these directories are very large it
can take a long time.)  On the other hand on the Amiga a similar CD
would not require linear searches (it uses a hash table) and so would
be relatively instantaneous.

So the answer is that the Amiga disk format makes an Amiga NCD unnecessary.
-- 
Andrew Phillips (andrew@teslab.lab.oz.au) Phone +61 (Aust) 2 (Sydney) 289 8712

martijn@dnlunx.pttrnl.nl (Reinalda M.) (12/14/90)

andrew@teslab.lab.OZ (Andrew Phillips) writes:

>In article <4411@dnlunx.pttrnl.nl> martijn@dnlunx.pttrnl.nl (Reinalda M.) writes:
>>Does anyone know if there's a change dir command for the amiga
>>like the MS-DOS (bwaah!) Norton Change Dir (NCD). 
>>NCD creates an image of the hard-disk directory structure, so it
>>can immediately change to a given dir. Well, most of us are unhappy
>>enough to work with PC's in the (un)real world so you'll probably know
>>what NCD does.

>Unfortunately I have worked with MSDOS on and off for 8 years but I
>haven't used NCD.  I presume it has a TSR part which stores an image
>of the whole hard disk directory structure in memory.  Then the NCD
>command itself accesses this so that you can change to another
>directory immediately by not having to scan all the disk directories
>in the specified path.

>Fortunately the Amiga has a different disk format so that it does not
>need to scan a whole directory to find an entry.  So when you do a 

>    CD \APP\WIN\SYSTEM

>under MSDOS, CD has to do three (linear) searches of three
>directories.  (If one or more of these directories are very large it
>can take a long time.)  On the other hand on the Amiga a similar CD
>would not require linear searches (it uses a hash table) and so would
>be relatively instantaneous.

>So the answer is that the Amiga disk format makes an Amiga NCD unnecessary.
>Andrew Phillips (andrew@teslab.lab.oz.au) Phone +61 (Aust) 2 (Sydney) 289 8712

I'm sorry, maybe I didn't make myself clear or you're just missing the
point. Example :

 Let's say there's a directory DH0:programs/graphics/sculpt/objects 

Then I wanna type : NCD objects

and the computer should automaticaly know where that directory is located
( I don't care how) and perform a : 

CD dh0:programs/graphics/sculpt/objects 

It also should not matter in what directory I am on the moment of giving
the NCD command. 


  ***********************************************************************
  ** Keyboard error or no keyboard present. Press any key to continue. **
  **                                                              IBM. **
  ***********************************************************************
  **                  E-mail : martijn@DNLUNX.UUCP                     **
  ***********************************************************************           

walrus@wam.umd.edu (Udo K Schuermann) (12/15/90)

In article <4961@dnlunx.pttrnl.nl> martijn@dnlunx.pttrnl.nl (Reinalda M.) writes:
> Let's say there's a directory DH0:programs/graphics/sculpt/objects 
>
>Then I wanna type : NCD objects
>
>and the computer should automaticaly know where that directory is located
>( I don't care how) and perform a : 
>
>CD dh0:programs/graphics/sculpt/objects 
>
>It also should not matter in what directory I am on the moment of giving
>the NCD command. 

"It's in there!"

How about this in your startup-sequence:

	assign objects: dh0:programs/graphics/sculpt/objects

then you can say

	cd objects:		; note the colon (:) at the end

and voila'!!!  Do a few assigns for your most common directories, and
you're in business.  No new programs needed.

 ._.  Udo Schuermann        "How is American beer similar to making love in
 ( )  walrus@wam.umd.edu    a canoe?" -- "Both are f***ing close to water."