Interactive parameters set-up
|
Original Message
|
Name: Zennon
Date: March 16, 2004 at 04:55:55 Pacific
Subject: Interactive parameters set-upOS: DOS 6.22CPU/Ram: 256 |
Comment: Hi, I've got a program in my config.sys that slows the CPU speed that has following syntax: slow ***, where *** is the value to determine the requested speed. I would like to have the possibility to set up this parameter from the console WHEN BOOTING(!) DOS i.e.: that the computer asks me on the screen e.g.:"enter the speed ratio" or so and I would then type in particular value depending of my needs and then config .sys would proceed with its task list. How to do this? Thank's in advance for help! Zennon
Report Offensive Message For Removal
|
|
Response Number 1
|
Name: IVO
Date: March 16, 2004 at 06:14:15 Pacific
Subject: Interactive parameters set-up |
Reply: (edit)If the Slow program is a Config.sys line (loaded via Device=?), it is definitively not possible to interact with the routine as Config.sys is parsed BEFORE the core module of DOS (MSDOS.sys) is loaded and the shell (Command.com) activated. A way to work around that is to set up a compound Config.sys with pre-set speeds for Slow and so choose the suited at start-up: [Menu] MenuColor=14,1 MenuItem=1, CPU Speed nnn MenuItem=2, CPU Speed mmm MenuDefault=1,5 [1] Device=Slow nnn [2] Device=Slow mmm [Common] Balance of Config.sys The above sample makes you able to choose between speed 1 and 2 and defaults to 1 after 5 seconds.
Report Offensive Follow Up For Removal
|
|
Response Number 4
|
Name: jboy
Date: March 16, 2004 at 08:31:49 Pacific
Subject: Interactive parameters set-up |
Reply: (edit)Check your documentation - 'probably' is not the same as 'certainly'. Even if passing parameters within config.sys is permissable, with TSRs, not everything works as described - there can be unforseen conflicts. Some experimentation may be required. Possibly using 'install' in config.sys may be worth exploring. Thinking - it's a habit.
Report Offensive Follow Up For Removal
|
|
Response Number 5
|
Name: Zennon
Date: March 16, 2004 at 22:53:10 Pacific
Subject: Interactive parameters set-up |
Reply: (edit)So I've got another question (as I'm not expert in DOS): how to make a batch file asking me (after booting DOS) for parameters and enabling me to enter various parameters for any other program? For example I would type "batchname.bat" from the DOS prompt and it would ask me: "enter parameter" and then would assigne the parameters to the program and execute it with the given parameter? Thanks to all for help! Zennon
Report Offensive Follow Up For Removal
|
|
Response Number 6
|
Name: jboy
Date: March 16, 2004 at 23:28:40 Pacific
Subject: Interactive parameters set-up |
Reply: (edit)You can use 'replaceable parameters' (%1 %2 %3 etc) within the batchfile - example You could use DOS 'choice' which could assign the various parameters to letter choices and prompt the user. More about 'choice' in the always useful DOS6xx 'Help' utility. It's by no means rocket science, but if you're inexperienced, might be something of a learning curve involved. Lots of tutorials on Google Thinking - it's a habit.
Report Offensive Follow Up For Removal
|
Use following form to reply to current message: