1.

Solve : I need fast help for my school DOS exercises?

Answer»

2º Make a bat file called help.bat, that can receive any number of parameters (9 maximum). Each parameter will be understand that BELONGS to some MS-DOS command that the user WANTS to obtain help. For that, it will have to show this help in paging form of all the parameters introduced.

Thanks folk!

HarlequinFirst post[/color]I'm not sure the question is worded properly, but I think I understand the assignment. You are supposed to write a batch file that will accept any number of parameters, each parameter is a command that you want to display help on, and pause between pages if necessary. Would your instructor want you getting help like this?!?
Is this to be run under real-mode DOS (like MS-DOS 6.22), or a command prompt under a newer operating system like Windows XP?
I don't know what batch commands you have learned or not learned, but here is a solution (ASSUMING you are runing this under Windows 2000/XP/2003):
Code: [Select]@echo off
if not {%1}=={} GOTO Loop
echo You must enter at least parameter with which you want help
goto :EOF
:Wait
pause
:Loop
echo ========== Help on "%1" command ==========
%1 /?|more
shift
if {%1}=={} (goto :EOF) ELSE goto Wait
Be sure you understand the batch file and all the commands in it - ask if you have any questions.Yesssssssss!!!!!!!!

This that I need, Thanks a lot, I make bows to you....

THANKS; THANKS; THANKS; THANKS;

A thousands THANKS!!!

HarlequinYou're welcome. And as a bonus, this script can actually accept MORE than 9 parameters.Yes, I have seen it, for that, I make bows to you....
Thanks again CHAMPION.



Discussion

No Comment Found