VOGONS


First post, by curvedline

User metadata
Rank Newbie
Rank
Newbie

ECHO 1. disable music
ECHO 2. enable music
choice /C:abcdefghijklmnoprstuvwxyz1234567890q /N "Q to quit or any other key to play"
IF ErrorLevel 36 GOTO :END
IF ErrorLevel 27 GOTO :enable_music
IF ErrorLevel 26 GOTO :disable_music
GOTO :CONTINUE

:enable_music
res-adl.EXE -o
GOTO :CONTINUE

:disable_music
res-gen.EXE -o
GOTO :CONTINUE

:CONTINUE
play.exe
:END

my made res-adl.EXE and res-gen.EXE are compressed DOSZIP files but are needed to replace a configuration to control music.

sierra DOS games bypass the music/midi dosbox virtual devices because damn sierra games are known for "no digital sound effects" and no option for "no music" and its in-game music control bar always STARTS with 100% and it doesnt save a music setting upon quitting . unlike westwood's kyrandia, when sierra game's in-game music bar is 0%, this means background music is turned off and midi sound effects are ALSO turned off.

because pkzipDOS.exe compresses and i have to replace it
i need some kind of DOS command or pkzipDOS.exe kind of software that MUST NOT compress files and combine all files into a single EXE file.
this single output.exe also needs to have this switch
output.exe -overwrite

if in an example of win32 ZIP version , the command line would be like this "PKZIPC.EXE -SFX -LEV=0 output"
PKZIPC.EXE -SFX -LEV=0 ;no compression and fast and i need this
PKZIPC.EXE -SFX -LEV=5 ; compresses and i dont need this

Last edited by curvedline on 2024-08-28, 04:30. Edited 1 time in total.

Reply 1 of 11, by wbahnassi

User metadata
Rank Oldbie
Rank
Oldbie

Can't you just Qbasic it and make it an exe?

Turbo XT 12MHz, 8-bit VGA, Dual 360K drives
Intel 386 DX-33, TSeng ET3000, SB 1.5, 1x CD
Intel 486 DX2-66, CL5428 VLB, SBPro 2, 2x CD
Intel Pentium 90, Matrox Millenium 2, SB16, 4x CD
HP Z400, Xeon 3.46GHz, YMF-744, Voodoo3, RTX2080Ti

Reply 2 of 11, by Grzyb

User metadata
Rank l33t
Rank
l33t

I think every archiver has an option to store files without compression...

InfoZIP:
zip -0 archivename filename

RAR:
rar a -m0 archivename filename

Kiełbasa smakuje najlepiej, gdy przysmażysz ją laserem!

Reply 3 of 11, by curvedline

User metadata
Rank Newbie
Rank
Newbie

thanks very much
i missed the -e line end

Usage: PKZIP [options] zipfile [@list] [files...]
-e[x,n,f,s,0] use [eXtra|Normal (default)|Fast|Super fast|NO compression]

pkzipdos -e0 !ttt1.zip RESOURCE.CFG
zip2exe !ttt1.zip

Reply 4 of 11, by Grzyb

User metadata
Rank l33t
Rank
l33t

But if you don't need compression, you don't need an archiver.
You can simply keep several versions of the config file with different names: CONFIG1.CFG, CONFIG2.CFG...
and copy the appropriate vesion over:

copy CONFIG1.CFG RESOURCE.CFG

Kiełbasa smakuje najlepiej, gdy przysmażysz ją laserem!

Reply 5 of 11, by curvedline

User metadata
Rank Newbie
Rank
Newbie

thanks for clearing my head, i got this sort of things going on with windows games, i collect a bunch of savedgames and settings in 0% compressed format. my brain got stuck there for long, long names gave comforts, so my habits got stuck there deeper.

!RESOURCE.CFG - adl ,patchdir implemented.EXE --- became DOS version res-adl.EXE
!RESOURCE.CFG - genmidi, patchdir implemented.EXE --- - became DOS version res-gen.EXE
!AS2 - Conscription - saved game 01.exe
!AoW1 - cult lizard undead 1 - 3dead 2water 2earth.EXE (collected 300 savedgame files)
!AoW1 - keeper dwarf highmen 2 - 3life 2water 2earth.exe
!JA2 - savedgame - sam sites 2.EXE (collected 500 savedgame files)
!RA2 - Mission - Yuri - Yuri's Training ground 1.exe (collected 50 MODS and maybe 50 savedgame files)

i will use your method at least once somewhere that is gonna tell me this kind of method also exists
but i still need to do this for replacements between many savedgames

Reply 6 of 11, by myne

User metadata
Rank Oldbie
Rank
Oldbie
Grzyb wrote on 2024-08-28, 05:02:
But if you don't need compression, you don't need an archiver. You can simply keep several versions of the config file with diff […]
Show full quote

But if you don't need compression, you don't need an archiver.
You can simply keep several versions of the config file with different names: CONFIG1.CFG, CONFIG2.CFG...
and copy the appropriate vesion over:

copy CONFIG1.CFG RESOURCE.CFG

Yeah.

If exist config.cfg del config.cfg
Copy config1.cfg config.cfg
Goto continue

Done.
Add as many files as necessary to achieve this.

I built:
Convert old ASUS ASC boardviews to KICAD PCB!
Re: A comprehensive guide to install and play MechWarrior 2 on new versions on Windows.
Dos+Windows 3.11+tcp+vbe_svga auto-install iso template
Script to backup Win9x\ME drivers from a working install
Re: The thing no one asked for: KICAD 440bx reference schematic

Reply 7 of 11, by Grzyb

User metadata
Rank l33t
Rank
l33t
myne wrote on 2024-08-28, 10:43:

If exist config.cfg del config.cfg

No need to DEL, the COPY command overwrites it anyway.

Kiełbasa smakuje najlepiej, gdy przysmażysz ją laserem!

Reply 8 of 11, by myne

User metadata
Rank Oldbie
Rank
Oldbie

Hmm
Command and cmd are so different I can't honestly say you're right or wrong, but usually things complain when you overwrite existing files, and you have to at least /y it to overwrite.

I built:
Convert old ASUS ASC boardviews to KICAD PCB!
Re: A comprehensive guide to install and play MechWarrior 2 on new versions on Windows.
Dos+Windows 3.11+tcp+vbe_svga auto-install iso template
Script to backup Win9x\ME drivers from a working install
Re: The thing no one asked for: KICAD 440bx reference schematic

Reply 9 of 11, by Grzyb

User metadata
Rank l33t
Rank
l33t

In early DOS versions, COPY always overwrites files without asking.

In late DOS versions, it depends:
- when invoked interactively, COPY asks whether to overwrite
- when invoked from a .BAT, COPY overwrites without asking

Kiełbasa smakuje najlepiej, gdy przysmażysz ją laserem!

Reply 10 of 11, by BloodyCactus

User metadata
Rank Oldbie
Rank
Oldbie

set COPYCMD=/y

or just "copy /y" to suppress confirmation

--/\-[ Stu : Bloody Cactus :: [ https://bloodycactus.com :: http://kråketær.com ]-/\--

Reply 11 of 11, by curvedline

User metadata
Rank Newbie
Rank
Newbie

thanks for these two advice
>I think every archiver has an option to store files without compression...

>copy CONFIG1.CFG RESOURCE.CFG
after few days, i dropped the use of compressed file format for replacing settings
copy command overwrites and is unnoticeabely fast and smooth