Pegasus (MVP) said:
As Ian suggested, piping Y into a command will do the trick,
e.g. like so:
echo F | xcopy c:\*.* d:\Test
Note that DOS is an operating system, same as Windows XP.
There is no DOS under Windows, only a Command Prompt.
In Help 7 Support, search for Command-line reference A-Z, to learn all
about "changes to the functionality of MS-DOS commands, new command-line
tools, command shell functionality, configuring the command prompt, and
automating commmand-line tasks". It may not be DOS, but Microsoft still
refers to the commands as MS-DOS commands, so it is not totally
unreasonable to refer to the window in which one uses the MS-DOS commands
as a DOS window.
The Cmd.exe window, displays something like this when you open it:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
The Command.com window displays something like this when you open it:
Microsoft(R) Windows DOS
(C)Copyright Microsoft Corp 1990-2001.
I kinda think that this really is running a version of DOS under Windows,
but I could be wrong.
Both windows can run batch files, but the CMD window is much more
versatile. It has many more commands and more powerful batch capabilities
than the Command.com window.
WXP can format a disk creating an MS-DOS startup disk. I believe on
bootup it would actually be DOS and have capabilities similar to the
Command.com window.
-Paul Randall