This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 3901. |
Solve : Before???? |
|
Answer» This post is not really about MS-DOS, but DOS in general. I am writing a paper for school and I was looking for information on computers before DOS. :-? I know hey are ancient, but if anyone has ANY information they can GIVE me, I would be very grateful. |
|
| 3902. |
Solve : Batch file menu? |
|
Answer» How can I use the ESC key in a menu using the CHOICE COMMAND? |
|
| 3903. |
Solve : Colors - one line in blue another in red?? |
|
Answer» Are there any known methods that allow to show blackbarry! sorry man, I just tried to help btw its blackb>E<rry, not blackarry at least you can work with colors on the forum (as seen you sentence) It is an amused question , here you has a possible SOLUTION: Code: [Select]debug < %0.bat GOTO fin N ECHOBLUE.COM A 100 MOV BL,1 MOV BH,0 MOV SI,0082 MOV AL,[SI] MOV CX,1 MOV AH,09 INT 10 MOV AH,3 INT 10 INC DL MOV AH,2 INT 10 INC SI MOV AL,[SI] CMP AL,0D JNZ 109 RET r cx 22 w N ECHORED.COM A 100 MOV BL,4 MOV BH,0 MOV SI,0082 MOV AL,[SI] MOV CX,1 MOV AH,09 INT 10 MOV AH,3 INT 10 INC DL MOV AH,2 INT 10 INC SI MOV AL,[SI] CMP AL,0D JNZ 109 RET r cx 22 w q :finCopy an execute the previous BAT, this code make two commands, ECHORED.COM and ECHOBLUE.COM: ECHORED ¡Hola mundo! ECHOBLUE Hello world! ¡Hola mundo! Hello world! It's obvious that the code could be improved doing that the first argument be the number of color: ECHOCOLOR 4 ¡Hola mundo! ECHOCOLOR 1 Hello world! But now I'm very busy in my work, It's an exercise for you I wait for your contribution Here you have a brief explanation of the code: The first line in the assembler code is the color: MOV BL,1 : blue MOV BL,4 : red You can see the possible values for color with the MS-DOS command: COLOR /? You can read the BIOS Interrupts here: http://www.uv.tietgen.dk/staff/mlha/PC/Prog/asm/int/INT10.htm ------------------------------------------- INT 10, 9: write 'char'&attrib AH = 9 AL = char BH = display page (0) BL = attribute CX = no. of repetitions = 2000(7D0h) to fill 80*25 screen cursor not moved ------------------------------------------- INT 10, 3: report cursor location, shape AH = 3 BH = display page (normal = 0) CH, CL = starting, ending scan line DH, DL = row, column -------------------------------------------- INT 10, 2: set cursor location AH = 2 BH = display page (normal=0) DH,DL = row,col (0..24,0..39/79) ------------------------------------------- GOOD LOOK !!Doesn't work for me. I get this error: The system cannot find the file specified. Thiss is right after the "debug" line. :-?Dilbert, Try with quotes: debug < "%0.bat"CARLOS! This is awesome! It works well in WinXP when the command window is 80x25. I will continue looking for a solution that works with bigger windows outside the 80x25 range. However this is a good start! Using the concept of DOS functions described here http://www.cmdtips.com/dostips/DtTutoFunctions.php I came up with the following code that can easily be copied and distributed in a batch file. The helper file ECHOxx.COM will be created on the fly if not already there, whereas xx is the color. Conditions for the correct EXECUTION are:
A dot appended to the color code will enforce a line break. Without the dot one can output different colors in one line. Code: [Select]@echo off rem enforce conditions if not exist "%temp%" set temp=%tmp% if not exist "%temp%" set temp=c:\temp if not exist "%temp%" md "%temp%" mode con: cols=80 lines=25 call:echo 9. one line of text in blue and call:echo C. another one in red call:echo 9 D call:echo A O call:echo B S call:echo C T call:echo D I call:echo E P call:echo F. S pause ::--------------------------------------- :: FUNCTIONS START BELOW HERE ::--------------------------------------- goto:eof&:: keep this line in order to avoid running into the function :echo col txt -- colors the previous line red :: -- col : in - color call color /? for color codes :: -- txt : in - text output SETLOCAL for /f "tokens=1,*" %%a in ("%*") do ( set col=%%a set txt=%%b ) set cr=N if "%col:~-1%"=="." ( set cr=Y set col=%col:~0,-1% ) set com=%temp%.\color%col%.com if not exist "%com%" ( echo.N %COM% echo.A 100 echo.MOV BL,%col% echo.MOV BH,0 echo.MOV SI,0082 echo.MOV AL,[SI] echo.MOV CX,1 echo.MOV AH,09 echo.INT 10 echo.MOV AH,3 echo.INT 10 echo.INC DL echo.MOV AH,2 echo.INT 10 echo.INC SI echo.MOV AL,[SI] echo.CMP AL,0D echo.JNZ 109 echo.RET echo. echo.r cx echo.22 echo.w echo.q )|debug>NUL "%com%" %txt% del "%com%" /q if "%cr%"=="Y" echo. goto:eof To be continued ...Quote Dilbert, C:\>debug 0<"echoX.bat" The system cannot find the file specified. C:\>goto fin C:\> The above is the total output, now, of the batch file.I mean try replacing it in the batch file.I did.DILBERT: Do you have the debug program ? If yes, you can assemble the code directly: C:\colors>debug echored.com No se encuentra el archivo (translate: File not found) -a 1559:0100 MOV BL,1 1559:0102 MOV BH,0 1559:0104 MOV SI,0082 1559:0107 MOV AL,[SI] 1559:0109 MOV CX,1 1559:010C MOV AH,09 1559:010E INT 10 1559:0110 MOV AH,3 1559:0112 INT 10 1559:0114 INC DL 1559:0116 MOV AH,2 1559:0118 INT 10 1559:011A INC SI 1559:011B MOV AL,[SI] 1559:011D CMP AL,0D 1559:011F JNZ 109 1559:0121 RET 1559:0122 -R CX CX 0000 :22 -w Escribiendo 00022 bytes (translate: writing 22 bytes) -q C:\colors>echored hola hola P.S. If you don't want to write all the code in assembler, copy it from the Reply #4 (i.e. without address memory) and paste it in the debug. Good work DosItHelp, a very pretty demostration of colors The .bat file works now, no clue why it didn't before. But now on a black background, I can barely see blue and red... I'm so picky... |
|
| 3904. |
Solve : star out text with set? |
|
Answer» Hello, |
|
| 3905. |
Solve : Download MS-DOs? |
|
Answer» Does nybody know where i can download MS-DOS :-/If it were possible, I'd be BACKING up my prompt so I don't have to use that PATHETIC EXCUSE for a prompt Windows Vista will be "EQUIPPED" with. Quote Does nybody know where i can download MS-DOS :-/ It cannot be downloaded legally. Try eBay for a used copy. You can download FreeDos: http://www.freedos.org/Yeah, but I'd have to give up Windows... :-/ |
|
| 3906. |
Solve : DOS fault...? |
|
Answer» how do i fix a DOS fault that comes up when i try to install Windows 98? i will post the scecifics of the problem when i get out of school, thanks. What kind of drive, size, proposed file system, and how is it partitioned? Has it ever worked correctly? Are you using drive overlay software of some kind? Can you boot from a floppy? its a internal HDD 1.99gigs(i know its tiny, but im gonna upgrade... eventualy) yes i can boot from a floppy and CD rom, it worked fine until it CRASHED. and the HDD has 6136 cylinders 16 heads 63 sectors its capacity is 3020MB, the pc registers it as WDC (western DIGITAL caviare) AC33100H. and i dont know what drive overlay software is .Dusty update you missed: http://support.microsoft.com/kb/q87239/ |
|
| 3907. |
Solve : Organising a date sorted Directory tree.? |
|
Answer» How WOULD I make my batch file create a new subdirectory automatically prefixed by the date stamp? |
|
| 3908. |
Solve : An Important Math Problem? |
|
Answer» How WOULD I create an "IF" syntax that if I had a number and DIVIDED it by another number my batch file would do [glb]one[/glb] thing if the result: |
|
| 3909. |
Solve : help please?? |
|
Answer» !is there a way to open my cd drive using command prompt?By opening do you mean reading the contents or ejecting the drive out.ejecting the drive out |
|
| 3910. |
Solve : DOS Terminal program? |
|
Answer» I am trying to write a DOS script file based program that will allow me to SEND and RECEIVE data from a SERIAL Comms port. I am trying to write a DOS script file based program that will allow me to send and receive data from a Serial Comms port. Tou are aware that DOS and command prompt are different? and you are aware that XP and DOS access the hardware differently? |
|
| 3911. |
Solve : Loading windows from DOS? |
|
Answer» I want to load XP from the D: drive after creating partitions. The windows disk from the bundled package will not allow this apparently unless I usw DOS commands. Can anyone help with this?Please give just a little more info. I want to load XP from the D: drive after creating partitions. Please forgive me, it's hot here & I've had a hard day so my brain is not functioning properly. The scenario seems to be that you have partitioned your hard-disk and presumably formatted your partitions. You want to "load XP from the D: drive" which is now the second partition on your drive, not your cdrom. Can you not just use fdisk (or some other software) to create partitions, format, change bios to make your cdrom the first boot option, put the cd in the drive and reboot? Maybe you could post the messages you get which indicate that you need Dos commands to intall XP. Sorry about my confusion. Quote I mean that I want to install XP from the CD that cam with my PC. It is a recovery CD. It automaticaly formats and then removes the partitions that I create. I use the software that came with my replacement hard disk to creat the partitions. You "D-drive" (CD-ROM) must be configured as the 1st boot device in the CMOS setup (BIOS). If not 1st, then before the hard drive. The drive that I want to load XP from is a cd rom. The partitions on the hard drive will end up being C and D. The OS is on a "recovery disk" that was bundled with the PC from the manufacturer. The hard drive is a replacement drive and the manufacturer provided partitioning software. When using the "recovery disk", and following the prompts, it will remove the partitions. The prompts ask if I want to format, and the other is, do I want to run a recovery. This is all in a DOS format. If I select N at each of these prompts, all processes end (stop) and I am then either required to enter a DOS command or start over.That is a problem with some "Recovery Disks" - they just delete ALL the partitions, reinstall how they want, not what you want. I don't know any way around that, if you want to use their software to restore. It depends on the manufacturer and the product LINES. My last Dell came with a CD of the O/S, but that was several years ago.Did this hard drive come with an image file on it........make model of pc in question may help......The computor is a Northgate with a 1.8 AMD Athlon. I do not know of a specific model number. I would really hate to buy a OEM XP disc just to do a simple task that I want to do. GX1_Man understands what the situation is. I assumed that there was a DOS command to make the disc do what I want. With my current set-up I have, two 160G hard drives, and two DVD drives. I want to partition both HD's and maximise the use. I have found that XP will not support a 160G HD, it automatically reduces the size usable to 140G. If anyone has an idea that does not include purchasing an OEM XP disc please let me know.I don't think it can be done, short of buying a new XP CD. Those restore CD's have a mind of their own.Sa... let me se if i undestend... The whole ideea is the partitioning of your HDD's... and your WIN XP CD does the partitionig for you ... the way he wants... Usualy when I install Win XP i make only one partition ... Ex:5 Gb ... and after Win XP is up, I use Partition MAGIC 8 the create, modify, delete, resize the partitions... |
|
| 3912. |
Solve : PLEASE HELP WITH THE "AT" COMMAND? |
|
Answer» If the file does not exist you will probably get a message "bad command or file name". This whole thread is getting out of hand. Why not just use the interactive task scheduler, fill in the parameters and be done with it? |
|
| 3913. |
Solve : PREFIX TO REVERSE ORDER? |
|
Answer» Running DOS 6.22 , after the HIMEM test is COMPLETE i get the FOLLOWING message |
|
| 3914. |
Solve : Batch on line? |
|
Answer» How can you put an batch file online? i think that this is impossible, but i WOUD like it if it worked... How can you put an batch file online? i think that this is impossible, but i woud like it if it worked... I don't think you ask the RIGHT question. Do you mean if you want to put batch files online, or if you want to make that you can exucute online, that last one is impossible I think because batch is not a internet-language |
|
| 3915. |
Solve : Network Copy? |
|
Answer» i've got this line: |
|
| 3916. |
Solve : batch file folder create? |
|
Answer» I am downloading alarm logs from different computers and i need to create a folder (with SUB FOLDERS) incorporating the date and some predefined text into it. I am sure it is quite easy but i have no clue. |
|
| 3917. |
Solve : CMD command question? |
|
Answer» im totally NEW to DOS, so i just have a simple question: |
|
| 3918. |
Solve : search text file for certain strings on batch? |
|
Answer» How the *censored* do I use a .bat to SEARCH a text file for certain STRINGS (includes wildcards), and save the found ones to a .txt file? I used to know all this stuff before I learned VB - now I've forgotten everything |
|
| 3919. |
Solve : System File help??? |
|
Answer» What is the system file that allows commands to be exexcuted...error mess.. is COMING up ?? |
|
| 3920. |
Solve : Trouble Opening Registry? |
|
Answer» New here, searched and didn't find anything related to my problem...have no idea is this is in the right forum category but oh well. |
|
| 3921. |
Solve : stuck in ms-dos...? |
|
Answer» i was having problems with my COMPUTER so i tried to restart it in safe mode to FIX the problem, theres and option on the shut down menu to restart it in ms-dos mode, i thought that was safe mode so i restarted it in that mode. now that i did that i cannot GET it to restart back to the normal mode. is there a code i can type into the computer to put it back into normal mode? or am i skrewed? |
|
| 3922. |
Solve : deleting files from subdirectories? |
|
Answer» HI, I've GOT a problem. I'm to CREATE a batch file that make such things: Delete all files in directory(I type the name of it) and all files in subdirectories. WRITING the name and PATH of all current deleting file. (cant use deltree of course ) I'm not good in this so any help will be welcome |
|
| 3923. |
Solve : To Open Windows in DOS? |
|
Answer» My boyfriend is trying to FIX his uncle's comp. He knows what he needs to do but first he has to get it to let him into DOS..... It starts up, says there's a prob and then SHUTS down. He just needs to know what he needs to hit to get into DOS. OS is Windows 98........that's all I know..... I know it's not much info.....I'll make him LEAVE more info when he gets off WORK but for now, that's all I've got. |
|
| 3924. |
Solve : Read from another file? |
|
Answer» Hy, This will display the text's contents on the screen: it works, thanks for help |
|
| 3925. |
Solve : suffix used after type command? |
|
Answer» I want to be able to read page by page after using the TYPE command in DOS 6.22. What suffix is used after the command as in-- type config.sys ?? is it /p. /p does not work. Please help. |
|
| 3926. |
Solve : List of choices in a batch file? |
|
Answer» Ok, i'm trying to work out how to make a list of options for different songs on my computer, i'm pretty noob to this but i hope you will still help me. |
|
| 3927. |
Solve : 'Error in Config.sys line 7'? |
|
Answer» I get the message 'Error in Config.sys Line 7' everytime i start my PC please is there anyone that can help me out? What STEP do i have to go through to eliminate this problem. ThanksLook at the file and tell us what line 7 SAYS, and what is your OPERATING system.hiya ive done sum research on the net and it LOOKS like my command.com file is either missing or corrupt, but it doesnt tell me the steps or WAYS to eliminate the error message, can u help me please. My operating system is windows XP. Thanks |
|
| 3928. |
Solve : command line for networking? |
|
Answer» i'm a system admin at my institution, i need all COMMAND network command LINE to maintain, configure, SETTING and TESTING my server and client... can any ONE help me plz??? |
|
| 3929. |
Solve : Can't startup!!? |
|
Answer» I just bought a Compaq Deskpro EN computer from a school auction & have it setup and running. The screen is asking for a command and I have no clue what it wants. It has ms-dos (r) version 6.20. Can anyone tell me what command I need. NOTHING has worked so far. |
|
| 3930. |
Solve : error loading mouse.drv -- must re-install windows? |
| Answer» | |
| 3931. |
Solve : Scroll in MS-DOS? |
|
Answer» Is it possible to scroll in MS-DOS? The net view i wish to view is to LONG In the prompt, yes. In MS-DOS mode on 9x MACHINES, no. But you can do it with the prompt, no NEED for MS-DOS mode... Why not try adding "| more" to the end of your command. This will let you see all the output before it continues. |
|
| 3932. |
Solve : Zero Byte Files? |
|
Answer» Hi, |
|
| 3933. |
Solve : RD Command Clarafication? |
|
Answer» I was just wondering if I were to type "RD C:\ /S /Q" then that command would delete my hard drive without asking. Or do I need to put "*.*" after the "C:\"?C:\WINNT\system32>help rd |
|
| 3934. |
Solve : The most colorful BAT file in the world!? |
|
Answer» Copy this out into a BAT file. |
|
| 3935. |
Solve : network printing? |
|
Answer» Does anyone knows how to print USING network PRINTER? |
|
| 3936. |
Solve : Backup Batch file help? |
|
Answer» Ok, here is the code (don't forget to scroll, it's kinda LONG) |
|
| 3937. |
Solve : nconvert? |
|
Answer» Hi, |
|
| 3938. |
Solve : Re: NEED BATCH FILE CODE HELP!!? |
|
Answer» Corrections are made in BLUE. Strikethrough = delete |
|
| 3939. |
Solve : Launch a shortcut? |
|
Answer» I am trying to run a dos file from a CD. I want to have it run FULL screen, but in XP I don't have the OPTION in the properties. If I CREATE a shortcut to the bat file I can change the options but I don't know how to run the shortcut from a bat file. |
|
| 3940. |
Solve : rename a file incremental number in batch file? |
|
Answer» Hi All -
|
|
| 3941. |
Solve : Copy new files to new directory? |
|
Answer» Hi |
|
| 3942. |
Solve : How do I get free disk space using a batch file?? |
|
Answer» I need to install a program and to do this I need to USE an unattended batch file to see if there is enough available disk space and then allow the batch processing to continue if there is enough. |
|
| 3943. |
Solve : FCB ERROR? |
|
Answer» I have a dos program which runs ok in W98 |
|
| 3944. |
Solve : Lose Focus/Get Focus? |
|
Answer» Is is possible to use a LOSE Focus/GetFocus command for the current command window? |
|
| 3945. |
Solve : What does the & sign do and How can I use it? |
|
Answer» I used DOS a long time ago (pre windows), but never used it very much. I read about USING notepad to create a bat file to run programs, and automate processes. I have made a couple of things work, but one thing that I would like to do is get all of my Financial information to come up together. E.g. I have my budget, Quickbooks file, and 2 bank sites I want to come up to the signon screen. |
|
| 3946. |
Solve : COMMAND LINES? |
|
Answer» The FAT32 or NTFS file system found in VARIOUS versions of Windows stores files with both a short name and a long name. steve number2.exe is the long file name. The short file name is probably SOMETHING LIKE steven~1.exe. (You can verify this by running a DIR /x command against the directory where steve number2.exe exists). |
|
| 3947. |
Solve : Stdin to file? |
|
Answer» Is it possible in dos batch to copy standard input to FILE? |
|
| 3948. |
Solve : issue with xcopy? |
|
Answer» HI, |
|
| 3949. |
Solve : PARTITION QUESTION? |
|
Answer» gateway le 500 came loaded w/ windows me. I tried to upgrade this thing a couple of years ago and didn't delete the old partition before installing the windows xp. since then, it won't let me into windows at all, either version. what should I do about this. I have lost the windows xp software also. A boot disk is a removable digital data storage MEDIUM, normally read-only, that can load (boot) an operating system or utility program. GX1_Man, if XP is loaded on the machine, and the bootdisks for it are there, could it not allow nsy to at least back up important files? Forgive me if I'm wrong, but I have to know this.I have the serial number and product key for windows me only. I lost everything for xp. Or maybe I should say that a week after the purchase, it mysteriously vanished. I no longer have the restore disk from gateway w/ the windows me on it.Quote GX1_Man, if XP is loaded on the machine, and the bootdisks for it are there, could it not allow nsy to at least back up important files? Forgive me if I'm wrong, but I have to know this. I think both installations of WIndows are FUBAR'ed.He can SLAVE that drive to another machine if anything important is there, use a Linux Live CD, etc. |
|
| 3950. |
Solve : hi everybody!? |
|
Answer» hi guys, i just got into Dos today and i absalutly love it! just type in help it shows u comands thent ehres a way to give a better discriptiton Gosh, Bil your typing in worse than mine!!! What school has DOS nowadays? There is no cmd.exe in DOS. Are you talking about a command prompt in XP? If so, go to www.bootdisk.com & download a Win98 bootdisk, WRITE it to a floppy (if you have a floppy), boot your computer from it & then play. That's DOS. It's less user friendly but to me that means more fun.Good point. |
|