VOGONS


First post, by Lazar81

User metadata
Rank Member
Rank
Member

Hello,
Is there a way (similar to > file.txt) to save the DOS boot prompt to a text file? I didn't find something on that?

Ryzen 5 2600X - ASUS ROG STRIX X470-F Gaming - 32GB RAM - Nvidia GeForce GTX 1080 Ti

Reply 1 of 8, by Jo22

User metadata
Rank l33t++
Rank
l33t++

I'm not sure right now, but there was something related to COPY CON I believe.
"CON" refers to the console, if memory serves. That stuff was used before CTTY got implemented, I recall.
Also, "AUX" was an alternate device to COM1. Anyway, just saying. Not sure if this is helpful.

"Time, it seems, doesn't flow. For some it's fast, for some it's slow.
In what to one race is no time at all, another race can rise and fall..." - The Minstrel

//My video channel//

Reply 2 of 8, by Lazar81

User metadata
Rank Member
Rank
Member

Ok... Thx. So copy con file.txt would probably put out this?.. But it isn't usable in config.sys, is it? So maybe I would only get the boot prompt from the autoexec.bat? Questions questions questions... 😕

Ryzen 5 2600X - ASUS ROG STRIX X470-F Gaming - 32GB RAM - Nvidia GeForce GTX 1080 Ti

Reply 3 of 8, by dr_st

User metadata
Rank l33t
Rank
l33t

COPY CON FILE copies from keyboard to file, it's not what you want. In AUTOEXEC.BAT you can simply put >>LOG.TXT at the end of every line to have the standard output appended to the file specified. This will not cover the error stream (STDERR). To the best of my knowledge, there is no way of redirecting STDERR in DOS (there is in Unix/Linux/NT), other than using CTTY. Not sure there is a way to use that in CONFIG.SYS either.

https://cloakedthargoid.wordpress.com/ - Random content on hardware, software, games and toys

Reply 4 of 8, by Lazar81

User metadata
Rank Member
Rank
Member

Ok... I will have a look this evening. someone knows about options for config.sys?

Tested. >>file.txt works great in autoexec.bat but no idea for config.sys

Ryzen 5 2600X - ASUS ROG STRIX X470-F Gaming - 32GB RAM - Nvidia GeForce GTX 1080 Ti

Reply 5 of 8, by PC Hoarder Patrol

User metadata
Rank l33t
Rank
l33t

Probably won't help, but what happens if you override the default device (CON) in shell=command.com with PRN or AUX?

What are you trying to capture - an error message? Which DOS version - can't you set it to step thru config.sys line by line (F5 / F8); if not try this

The attachment pausedev.zip is no longer available
PAUSEDEV - Simple pause command for CONFIG.SYS […]
Show full quote

PAUSEDEV - Simple pause command for CONFIG.SYS

Written by D.J. Murdoch (Jan, 1993) for the public domain.

This is a simple pseudo-device driver to let you put a pause into the execution of your device drivers while DOS is booting. Just put a line

DEVICE=PAUSEDEV.EXE

into CONFIG.SYS in as many places as you need a pause. Each time DOS tries to load this "device driver", you'll see "Press any key to
continue....". When you press one, the driver will unload itself. The source code (included) is a simplified version of my TPDEV
demonstration device driver written in Turbo Pascal. Look for TPDEV in TPDEV.ZIP wherever you found this program. PAUSEDEV
does something that TPDEV didn't: it initializes the CRT unit so that I/O is available. TPDEV gives a more complete implementation
of a driver that stays resident.

This program is completely free; it's even free of all warranties. I've tested it minimally using Borland Pascal 7 and DOS 5.0; use it at your
own risk.

Duncan Murdoch

71631,122 on Compuserve
DJ Murdoch at 1:249/99.5 on Fidonet
dmurdoch@mast.queensu.ca on Internet

Reply 6 of 8, by Lazar81

User metadata
Rank Member
Rank
Member

This is just curiosity. No errors...
This would be interesting for any DOS version

Ryzen 5 2600X - ASUS ROG STRIX X470-F Gaming - 32GB RAM - Nvidia GeForce GTX 1080 Ti

Reply 7 of 8, by konc

User metadata
Rank l33t
Rank
l33t

Pressing "pause" doesn't do the job? Or I don't remember correctly and it works only after config.sys?

Reply 8 of 8, by Lazar81

User metadata
Rank Member
Rank
Member

You can of course pause the execution of the config.sys file.

Ryzen 5 2600X - ASUS ROG STRIX X470-F Gaming - 32GB RAM - Nvidia GeForce GTX 1080 Ti