![]() |
Problem with commands in DOS I am trying to make modifications to the file system using dos - mods that cannot be done while the computer is booted into the OS. I downloaded the MS-DOS 7.1 boot disk from here and I cannot get it to perform the following commands: Choice Move I have checked the syntax a hundred times, but it still says bad command. How do I make them work? Every site that I look at says that the two are internal commands included with MS-DOS 6 and higher. |
Dos Hello, next time you start DOS type HELP to get a list of available commands you can use after DOS has been loaded. Let me know if the commands you're trying to use are there. Regards Martin |
help does not give me any options. This is the full blown dos, not command prompt if that helps. |
DOS External Commands Quote:
Type - path c:\program* Replace* with either 'MOVE.EXE' or 'CHOICE.COM' If they're there, it should find them. Regards Martin |
I found choice. something, but I haven't come across the other. Can you load cmd.exe in dos? |
Command.com Quote:
Some people are saying they are the same thing while others are saying that it is a different format, and others say despite the .com extension it is actually and exe file. Although I'd agree with it being a slightly different format which could cause problems running under 7.1. I don't have 7.1 running on any PC at the moment so I can experiment myself, so I would suggest trying it, you might need to put cmd.exe into the appropriate directory for 7.1 and then see if you can load it? I'll have another look around and see if we can find 'MOVE'. Regards Martin |
Actually, I found move and I also found choice scattered about in some CDs I had. Choice was on NAV2003, random, right? and I found a website that allowed me to download move.com. BUT, I still have one other problem, with appending the date to a file. When I tell it to make the date go into a file, I use this formula: EX: rem Make Directory With Name and Date for /f "tokens=1-3 delims=/- " %%a in ('date /t') do set XDate=%%b-%%c md %xdate%rgb it should come out as "08-02rgb" but it comes out "rgb." AND, how do I make it test for a file on one of the cdroms with out displaying the "Drive is not ready. Retry, Abort, Fail?" message? Or make it automatically abort or fail when this message will be prompted. I am writing a program that runs in DOS for work, and it would be a pain to have to tell it abort each time it needs to figure out in which CD drive the CD is located. Thanks! |
Abort\Re-try\Fail???? To force a failure on the drive and avoid the message, use COMMAND \F. For the date, change the delims to 1-2 and if you only need to use '-' after the '=' sign as this is how the command separates the values (%%b-%%c) I don't know what the switch '/t' is for, I can't find it anywhere, and I don't think 'XDATE' works in DOS?????? REM is for recording comments for a batch file or for CONFIG.SYS and you might be better of using the double colon ( :: ) instead for better efficiency. Try making the directory first, open up the details and view the timestamp on the file by typing C:\dir etc. Regards Martin P.S. You can't use the symbols 0-9 either as a variable either!!!!! |
Ok, I followed you up until the "You can't use 0-9" part. What did you mean? |
FOR %variable IN (set) DO Command When using the %variable in batch files, the '%' must be preceeded by another '%'. And to avoid confusion with the batch file parameters %0-%9, the variable can be anything except the symbols 0-9. Regards Martin |
O, the numbers that I had up there were what the folder name should have been. But I understand. Thanx |
Appending a Date to a File Quote:
Quote:
I hope it helps! Regards Martin |
I get all goose-pimply when you guys talk DOS....ooooooooooooh :) Save a copy of the reg first before doing anything. For those of us who only "speak a bit of DOS," I seem to recall that one can take that downloaded DOS7, open it up, and copy the whole kit and kaboodle into the system32 file. Do not overwrite any files though. You will be more successful on a FAT32 system. NTFS does not like to use DOS stuff that has not been pre-authorized. Access the commands from the c:\ in Safe Mode...just like you do a fsc /scannow command ... some will work, the majority won't, you'll have to experiment ...enjoy. Don't forget to save a copy of the reg first before doing anything. Then shut down and re-open in Safe-Mode Command Prompt... Worth a try anyway. It shouldn't hurt anything by just sitting there. |
All times are GMT -4. The time now is 02:08 PM. |
Copyright © 2005-2013 SysChat.com