Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

MUPDF/DGJPP test release! (Users)

posted by Rugxulo(R) Homepage, Usono, 21.02.2011, 02:31

> > But, %d (as is) doesn't seem to work in 4DOS. You need to double
> > the % sign with 4DOS, as in:
> >
> > pdfdraw -o out%%d.png origfile.pdf
>
> I run into same problem, I didn't know about double %%.
>
> > (To reiterate, the single %d works ok with COMMAND.COM. But...
> > does anybody even use COMMAND.COM anymore?)
>
> I do (original MS-DOS 6.22 - as a reference for compatability)

IIRC, 4DOS accepts "%blah" as a shortcut to "%blah%". Also, keep in mind that normal .BATs need "%%" inside to represent "%" for syntax reasons. Try this:


@echo off
echo Hello %world
echo Hello %%world


EDIT: BTW, old MS-DOS 6.22's COMMAND.COM (unless I'm remembering incorrectly) doesn't accept %blah% on raw cmdline (outside of .BAT), but newer versions from Win9x do. At least FreeDOS' FreeCOM and 4DOS both do.

 

Complete thread:

Back to the forum
Board view  Mix view
15191 Postings in 1365 Threads, 250 registered users, 15 users online (0 registered, 15 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum