[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: Setting config.txt directives in command line is now supported natively in vDos-lfn



Hi Carl,

I have added the ability to specify a config file and an autoexec file other than config.txt and autoexec.txt by now. To specify an alternative config file, use the /cfg option from the command line, e.g. "vDos-lfn /cfg test.txt". Also, command lines like "vDos-lfn /cfg test.txt /set frame=on" as you mentioned will work too, which specifies an alternative config file while the frame setting will be overridden with frame=on. To specify an alternative autoexec file, you can use the directive "AUTOEXEC=xxx" (where xxx is the autoexec file name) in either the config file or from the command line. For example, "vDos-lfn /set autoexec=test.txt" will use test.txt as the autoexec file. If you want to skip loading the config file or the autoexec file, simply specify a file name that does not exist. For example, "vDos-lfn /cfg nul" will skip loading the config file, so the default settings will be used. Similarly, to skip loading the autoexec file, either set "AUTOEXEC=NUL" in the config file or use "vDos-lfn /set autoexec=nul" from the command line. To skip both files, "vDos-lfn /cfg nul /set autoexec=nul" will do it obviously. Hope these features will be useful.

Wengier


On Sunday, July 24, 2016 11:53 PM, Carl Distefano wrote:


Reply to note from "Wengier W" mailto:dmarc-noreply@xxxxxxxx (Redacted
sender "wengierwu" for DMARC) Mon, 25 Jul 2016 02:51:23 +0000 (UTC)


Wengier,


Good idea to integrate vDosSet into vDos-lfn.exe. I wonder if you could also
add the ability to specify a config file other than config.txt; for example,
vDos-lfn /cfg config.new /set screen=2. In this example, config settings
would be taken from config.new, but any screen= setting in config.new would
be overridden with screen=2. Also, an /aut autoexec.new option to specify an
alternate autoexec file. I would find this very useful, as it would
duplicate and add to the functionality in VDOS.BAT, which I posted some time
ago to the vDos forum:
https://sourceforge.net/p/vdos/discussion/general/thread/5eeef395/#66b9

Also, a /def option, which would load vDos-lfn with all default options (no
config.txt, no autoexec.txt) might be useful for testing purposes.

--
Carl Distefano
mailto:cld@xxxxxxxx