Email or username:

Password:

Forgot your password?
Top-level
Wyatt (🏳️‍⚧️♀?)

@whitequark @parzivalwolfram @jannem @dalias @unnick gotta say i kind of wondered when you said 'only thing worse is cmd.exe'
Because that means you never used DOS

4 comments
✧✦✶✷Catherine✷✶✦✧ replied to Wyatt

@wyatt8740 @parzivalwolfram @jannem @dalias @unnick I have, actually! I never tried to ship DOS batch files at scale though, because that scale did not exist yet

Pixel Doge replied to Wyatt

@wyatt8740 @whitequark @parzivalwolfram @jannem @dalias @unnick ...aaaand that's why some of us used 4DOS, before moving over to Unix-like systems soon after.

ParzivalWolfram replied to ✧✦✶✷Catherine✷✶✦✧

@whitequark @wyatt8740 @jannem @dalias @unnick

if you need a variable that has iterable characters, you have to do something to the tune of:

choice /t:=,1 /c=%1= R:\bat\str2.bat > %TEMP%\test.bat
%TEMP%\test.bat

where str2.bat is the script to actually process the iterable (in my case, it's up to three splits in a string, and it's 1.2KB.)

this relies on error logic in choice to accomplish this, and needs tweaking for the version of DOS it's running on (this precise line only works on MS-DOS 6+ or equal IBM-DOS, and I don't think DR-DOS needs this at all, since it has some string comprehension extensions iirc)

@whitequark @wyatt8740 @jannem @dalias @unnick

if you need a variable that has iterable characters, you have to do something to the tune of:

choice /t:=,1 /c=%1= R:\bat\str2.bat > %TEMP%\test.bat
%TEMP%\test.bat

where str2.bat is the script to actually process the iterable (in my case, it's up to three splits in a string, and it's 1.2KB.)

Go Up