Jump to content
IGNORED

Can you alias a command in SpartaDOS X?


Calab

Recommended Posts

I find myself typing LS instead of DIR a lot of the time. Is it possible to create a alias for the DIR command in SpartaDOS X 4.49?

 

I've tried to copy the DIR.COM file from CAR: to my HDD on D8:, but I get a "too many files open" error.

 

Edited by Calab
Link to comment
Share on other sites

14 minutes ago, Calab said:

I find myself typing LS instead of DIR a lot of the time. Is it possible to create a alias for the DIR command in SpartaDOS X 4.49?

 

I've tried to copy the DIR.COM file from CAR: to my HDD on D8:, but I get a "too many files open" error.

The CAR: device only has 1 buffer, 2 are required for copying files. Instead of COPY you need to use TYPE with redirection, the following should work:

 

TYPE CAR:DIR.COM >>H:DIR.COM

  • Like 1
Link to comment
Share on other sites

4 minutes ago, BillC said:

The CAR: device only has 1 buffer, 2 are required for copying files. Instead of COPY you need to use TYPE with redirection, the following should work:

Thanks...   Got what I want with TYPE CAR:DIR.COM >> D8:LS.COM

  • Like 1
Link to comment
Share on other sites

45 minutes ago, Calab said:

Thanks...   Got what I want with TYPE CAR:DIR.COM >> D8:LS.COM

The DOSKEY.SYS extended command line utility also supports aliases, information about this starts on page 179 of the manual(page 193 of the PDF). Adding the following to the loaded CONFIG.SYS file should also work. 

 

DEVICE DOSKEY.SYS

LS=DIR

 

There is also software that allows customizing the contents of the CAR: device, SDX Imager.

http://sdx.atari8.info/index.php?show=en_addons

 

 

 

Edited by BillC
  • Like 2
Link to comment
Share on other sites

3 hours ago, BillC said:

The DOSKEY.SYS extended command line utility also supports aliases, information about this starts on page 179 of the manual(page 193 of the PDF). Adding the following to the loaded CONFIG.SYS file should also work. 

 

DEVICE DOSKEY.SYS

LS=DIR

I believe there is a bug in the DOSKEY when using aliases, I've tried in the past and find sometimes the commands work

and other times just cause the system to hang, I used the command in config.sys

 

I did try to resolve it long ago in this forum, but got nowhere.

 

DEVICE DOSKEY D9:ALIASES.INI

 

and in the ALIASES.INI file I put the commands I wanted e.g.

 

MOVE=COPY /M
HALT=COLD /N

ALIAS=TYPE D9:ALIASES.INI
BASIC=D6:\BIN\UBI.EXE

MAC=-D5:\BAT\MAC.BAT

  • Like 1
Link to comment
Share on other sites

  • 1 year later...

I did try to resolve it long ago in this forum, but got nowhere.

 

You're right, BillC. I couldn't get it to work consistently either.  An alias would often work after a reboot and then not again after. It would be neat if that feature worked but it doesn't seem to.

Edited by Brad Nelson
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...