1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Old 4Dos alias which works

Discussion in 'T&T - Aliases' started by Ivan Lowe, May 6, 2011.

  1. Ivan Lowe

    Joined:
    May 6, 2011
    Messages:
    2
    Likes Received:
    0
    I have been using this alias since the days of 4Dos. It seems to have been lost in all the improvements, but, for me it is extremely useful. Note, I am assuming you have the directories index made and search at level 3, just in case it is relevant.

    I am sorry I cannot remember the name of the person who wrote this alias. Thankyou if you are reading this.

    ; The following GX alias is a bonus for having made it this far into the
    ; file. It will "popup" a selection windows containing all the
    ; subdirectories in your current working directory. Select the one you
    ; want (including ".." for the parent directory) by using the usual
    ; navigation keys, and pressing ENTER, or hit ESCAPE to cancel.

    GX=`*echo ..>!%temp\_gx&*dir /kmba:d>>!%temp\_gx&*CDD %@select[%temp\_gx,2,50,15,73,þ Subdirs þ]>$nul&*del /q %temp\_gx`
     
  2. samintz

    samintz Scott Mintz

    Joined:
    May 20, 2008
    Messages:
    1,177
    Likes Received:
    11
    Old 4Dos aliase which works

    Why can't you just do:
    select /a:d /1 cdd [*]

    or

    pdir /a:d /h /(fn) |! cdd %@select[con,2,50,15,73,"Select"]

    -Scott


    Ivan Lowe <> wrote
    on 05/06/2011 04:55:43 PM:





    the

    the

    you

    the usual

    %@select[%temp

     
  3. Ivan Lowe

    Joined:
    May 6, 2011
    Messages:
    2
    Likes Received:
    0
    Re: Old 4Dos aliase which works

    Good idea. I must try it. Thanks.

    But I cannot yet write such complicated aliases. My main way of working is to use, with small modifications, aliases suggested by others. The one I posted seems to have got lost over the years and this is the forum for sharing ideas. I wonder how many other old aliases could be recycled.

    I have been using versions of this program since 4dos version 3 and still find the command line more instinctive and controllable than a GUI. But as I have seen the product grow my knowledge of programming has not grown (I do not have time to learn) to match the sophistication and power of the new products.

    I would like to see more ideas for short practical aliases shared.
     
  4. samintz

    samintz Scott Mintz

    Joined:
    May 20, 2008
    Messages:
    1,177
    Likes Received:
    11
    Re: Old 4Dos aliase which works

    I have a relatively small list of aliases
    I use. Steve Fabian has hundreds. I have no idea how he keeps
    them all straight in his head.

    This is my list:
    rw=attrib -r -s -h %$
    ro=attrib -a +r %$
    nd=md %1 & cd %1
    in=pu %1 & %2$ & po
    pu=pushd
    po=popd
    al=alias
    ex*cept=*except
    read=c:\v\v
    pgp=c:\pgp\pgp
    tlib=n:\tlib\tlib2
    cw=start c:\cw32\cw32
    edit=*edit %@altname[%$]
    4nt=%ComSpec
    4exit=c:\jpsoft\_4EXIT
    @@Alt-F4=exit
    ct=cleartool
    bd*ebugger=*bdebugger
    np="c:\Notepad++Portable\Notepad++Portable.exe"

    Some of those (most?) originated in
    the 4DOS days. Some, like EX, don't have a whole lot of use nowadays
    because of the much more powerful file exclusion ranges.

    -Scott



    Ivan Lowe <> wrote
    on 05/10/2011 05:34:03 PM:


     
  5. K_Meinhard

    Joined:
    May 20, 2008
    Messages:
    309
    Likes Received:
    0
    Re: Old 4Dos aliase which works

    Hallo Ivan,


    did you have a look at my site www.4dos.info?

    On page http://www.4dos.info/4obtms.htm you can find a few alias collections. And there are lot of btms from the 4dos day<s to give you ideas :-)

    herzliche Grüße,

    Klaus Meinhard
     

Share This Page