DOS command

April 14, 2010 at 02:55:03
Specs: Windows XP
Ok so I'm pretty new to DOS and I find it very interesting,I'm making some small programs out of boredom and learn alot of new DOS things in that way.One thing I couldn't find anywhere on the internet explained in detail was how to make the user enter a text,then get DOS to take part of the text,add it infront of a variable(set blabla=) and take those two to combine them to one single line.Example:
Type in question here: Is it raining today?

Answer: Yes,it is raining today
so when it took "raining today" and puts it in right after "Yes,it is "

Any explanations would be appreciated :)

See More: DOS command

Report •

April 14, 2010 at 03:27:22
For are start you are not using DOS. You are using a command prompt and that means a batch script.

DOS (Disk Operating System). DOS was the original Operating System that shipped with the IBM PC when it first came out in the early 1980s. It was the only Operating System that could be used till Windows and OS/2 came along.

There was an IBM clone called PC-DOS but that was just an OEM version of MS-DOS. There was also DR-DOS which some would say is better than the MS version.

DOS ceased to be part of Windows when Window ME was released. It never was part of Windows NT from which Windows XP is derived.

If you search the Internet for DOS batch scripts you are likely to come up against commands that wont work in Windows XP because there is no DOS in Windows XP.

You are never going to find anything to tell you how to perform a particular task on the Internet unless you are very lucky and come across some who has solved the same problem. The thing to do is to lean the ins and outs of batch programming then you can solve these problems yourself.


Report •

April 14, 2010 at 09:16:49
I don't know that you are using dos or not since you didn't say.

Most dos and xp commands have remained the same with a few changes.

I am not sure but it should be echo $A $B or such.

Playing to the angels
Les Paul (1915-2009)

Report •

April 15, 2010 at 08:06:52
Microsoft stopped calling it DOS after DOS 6.2 I believe and started selling people on the fact that Windows 95, 98 and Me ran on a Windows Kernel when it was actually still DOS. Microsoft bought OS/2 Warp from IBM around the time and played with OS/3 but scrapped it and made Windows New Technology 4.0 (NT 4.0). They also put out a Windows 2000 along with Me the difference was Me still used the old DOS kernel and 2000 used the new OS/2 kernel. They scrapped the old kernel in Me because it was a failure to say the least and kept with the OS/2 kernel now called NT for both their XP and Sever 2000 and 2003. The rest you probably know. Dr. DOS was Novell's way of trying to get into the OS business and it was a complete failure. Not worth mentioning. (Funny thing is I still have a Dr. DOS book in my collection.)

So by calling the Command Line in Windows XP, DOS is an insult to NT. As for the language it is Batch Scripting like the other scripts. In the new Vista, 7 and 2008 Server it is called Power Shell because it is not an Operating System like DOS, but a command line shell that is loaded on top of the NT kernel and it is different from the old command line because it has new commands and powers. You can get power shell for XP I believe but really not worth it.

That being said here is where I go for Command Line Scripting commands....

It use to be CHOICE in DOS but now on NT it is TYPE CON.

Type will output the contents of a file or device and Con will bring up an user input console like COPY CON.

Remember Batch Scripting is just a scripting language and was never meant to be a full blown programming language. It is used for Login Scripts, Backup Scripts and other administrator functions. If you are trying to write a program for users and want to use a scripting language, I would recommend Pearl.

Report •

Related Solutions

April 15, 2010 at 08:23:35
Where did you get the OS/2 part from?

Dave Cutler started writing NT while he was working for DEC in the heyday of Open VMS. He went to work for Microsoft and developed NT which is why original NT supported DEC, Mips, powerPC and intel platforms.

I have never read that Microsoft ever touched OS/2. Have a link?

Report •

April 15, 2010 at 08:35:39
OS/2 did start out as a joint enterprise between IBM and Microsoft but Microsoft withdrew when things were not going the way they wanted.

The development of OS/2 began when IBM and Microsoft signed the Joint Development Agreement in August 1985


Report •

April 15, 2010 at 09:15:24
Thanks for the correction. So much was happening back then I could not remember the exact details, but for some reason I thought it was 1995 not 85 because in 85 I don't even think they had Windows 2.11 out yet. I still have a 2.11 around some where. It was just a glorified DOS Shell then. Windows 3.0 was the big break.

Report •

April 15, 2010 at 12:28:19
Here is the "XP Command Prompt" commands list:

I accept it isn't "really" DOS but it emulates it and behaves in just the same way, for single commands or in batch files.

Although it is best to use the XP command list, old commands if downloaded will still run if put into c:\windows\system32

What's the time?

Report •

April 16, 2010 at 07:21:34
ace omega,

Did you ever have MS Bob for Windows 3.0?

Please let us know if you found someone's advice to be helpful.

Report •

Ask Question