The 4DOS command processor for MS-DOS

4dos, batch commands, grub 4 dos, dos 4, ms dos 4

Archive for November, 2010

BATCOMP and Comments

 > From: Tony Wright <Tony.Wri…@ATLANTAGA.NCR.COM>
 > Subject:      BATCOMP in version 5.5

 > In the past I have been using :: to comment lines rather than REM because it
 > is faster supposedly. I noticed that BATCOMP that comes with 5.5 appears to
 > remove these lines because when I uncompress the batch file using another
 > utility the lines are gone….

True.  It makes the compressed batch file smaller …

                                                 … Tom

.
posted by admin in Uncategorized and have No Comments

DEL /SX

 > From: Paul Wagland <peng…@TARTARUS.UWA.EDU.AU>
 > Subject:      Regarding del /sx

 > del /sx <file> *should* only remove a directory, if it removes a copy of
 > <file> from that directory.

Paul …

If we did that you could never use DEL /SX to clean off a disk or directory
unless there were files to delete.  I use it all the time to do just that,
and I suspect some other users do too.  I have a feeling the only way around
this is to add a switch which forces removal of EAs from directories, and
without those we would not remove the directories.  However I suspect that
would break some other batch files, and/or be incompatible with CMD.EXE.

We’ll look into it, but it isn’t as simple as it looks.

                                                 … Tom

posted by admin in Uncategorized and have No Comments

@UNIQUE

 > From: Tony Wright <Tony.Wri…@ATLANTAGA.NCR.COM>
 > Subject:      @unique function

 > I wish the @unique would not create the file automatically as you could then
 > modify the generated name a little before creating it (like changing the
 > extension from 000 to something else using. Anyone else have an opinion ?

To add an extension I just check for a collision on the new name, then
rename, and if you want to get fancy, loop and try again n times if there is
a collision.  This is NBD because collisions are incredibly unlikely.

                                                 … Tom

posted by admin in Uncategorized and have No Comments

4DOS 5.5 Bugs…

A quick bug report for JP:

- in 4help, the SELECT screen has a color screw up about half way down;
header and normal text colors get out-of-synch

- when using LIST from within SELECT and then escaping back, some
characters from the second line of the listed file end up in "unused char
positions" in the top line of the select screen (specifically the page
n-of-m section at the right).

minor, cosmetic stuff, but fixable!
                                                        — PSH —

Plus an idea:  it would be nice if helpcfg.exe could save the settings to
a file so they could be imported into another copy (when an upgrade comes
along).  that way you wouldn’t have to go thru the whole customization
process again.  Or perhaps a "get settings from" choice???

posted by admin in Uncategorized and have No Comments

4DOS vs Unix-like Shell MS_SH23b

Anyone compared the 4DOS with UNIX-LIKE shell MS_SH23b (sh / rsh)
for MSDOS? Which is better?

Phil

posted by admin in Uncategorized and have No Comments

Gating the JPSOFT list to fidonet.

Hope I send it to the right address and not to the mailing list!!

Anyway I am keen to spread the "good news" about 4dos.  I know there is all
ready a 4dos fidonet echo that is distributed here.  I was thinking though of
the possibility of gating this one as a fidonet area.  I have asked the HUB
here and he is happy to receive it.  I am already gating it but just as a
local area.

Any thoughts on this.

Many thanks.

Phil..
pthorn…@sawasdi.apana.org.au

For info on EFA send a netmail to efa-info@3:800/846.0
                         email to efa-i…@efa.org.au


Fidonet          -  Philip Thornton 3:800/846
Send files to    -  fi…@sawasdi.apana.org.au
File requests to –  files…@sawasdi.apana.org.au
pgp pubring      -  pgp-pubr…@sawasdi.apana.org.au

posted by admin in Uncategorized and have No Comments

Comments on @File Variable Functions

I’ve been playing around with the various @file functions and there
is something that they just won’t do.  If I have a file like this:

     David
     Michael
     Webb

and I want to remove the "Michael", there seems to be only one way to
do it.  I have to open a file and then write "David" and "Webb" to it.
This is no problem for a 3 line file, but I write batch programs that
store data internally and it would be nice if I could change the data
without having to copy the program’s code.  Being able to skip over
the code would make the batch file run faster.

The logical way to go would be the @fileseek function, but it doesn’t
do this right.  If I open the file in append mode and change it, the
file looks like this:

     David
     Webb
     l
     Webb

If the file is opened in write mode, an empty file is created and I
end up with something like this:

     .      Webb

What I’d like to be able to to is open the file, scan past "David",
write "Webb" and end the file right there so that I end up with:

     David
     Webb

If there is a trick that will do this, I’d be interesting in learning
it and if there isn’t, it would be a nice thing to see in 4DOS 6.0

While we’re talking about the @file functions, I should also mention
that I’ve been having problems with the @fileseek[n,line] function.
I keep getting an invalid parameter error and I’ve tried using both
the line number and the contents of the line.

Finally, to get one last bit of grumpiness off of my chest, it would
be nice if the @file variable functions were described in more detail
so that I wouldn’t have to play with test files to figure out how the
various parameters behave.

                                            – Dave

+———————+—————————————————+
| David Webb          |   The believer is happy; the doubter is wise.     |
| dw…@vax1.umkc.edu |                        - Hungarian Proverb        |
+———————+—————————————————+

posted by admin in Uncategorized and have Comments (3)

4dos and PC DOS 7 – REXX support

I have just received the first beta version of IBM PC DOS v7.0, which
supports the REXX programming language as an alternative to the standard
DOS batch language.

Unfortunately, 4dos doesn’t support Rexx, so I’m afraid I’ll have to ditch
it until JP comes up with a solution.  It shouldn’t be too hard, as they
already support Rexx under OS/2.

posted by admin in Uncategorized and have No Comments

4DOS Start.bat problem

Why cant JP disable the start command in 4dos. It is not valid
in 4dos and i have some files called start.bat. When the start
command is still active and i type start.bat i get the answer
unknown command .bat
i have to disable the internal command start with setdos /i-start
but cant this be activated only in OS/2.

regards Stanley


+===============================================================+
|  Stanley Appel                          I cant have said that |
|  Hoolstraat 73                          because I cant        |
|  4847 AB  Teteringen                    even speak english    |
|  The Netherlands                        right…….          |
|                                                               |
|      WE LOVE OWER DICK !!!!!!                                 |
|                                                               |
|  Tel +31-76-810346                                            |
|  EMail AP…@STACK.URC.TUE.NL (pref)                          |
|        s390…@STUD.TUE.NL                                    |
+===============================================================+

posted by admin in Uncategorized and have Comments (2)

Idea, 4DOS.INI option

Maybe a new idea for a next version of 4dos of in the 4dos.ini file

MemoryAlloc = BestFit
              FirstFit
              WorseFit

it is only a call to DOS to switch this but also.

regards Stanley


+===============================================================+
|  Stanley Appel                          I cant have said that |
|  Hoolstraat 73                          because I cant        |
|  4847 AB  Teteringen                    even speak english    |
|  The Netherlands                        right…….          |
|                                                               |
|      WE LOVE OWER DICK !!!!!!                                 |
|                                                               |
|  Tel +31-76-810346                                            |
|  EMail AP…@STACK.URC.TUE.NL (pref)                          |
|        s390…@STUD.TUE.NL                                    |
+===============================================================+

posted by admin in Uncategorized and have Comments (5)