Re: DOS / XP bat file programming question




"+Bob+" <uctraing@xxxxxxxxxxxx> wrote in message
news:7k89a35jgedhhc6dgm2khrauvh1c95r0ha@xxxxxxxxxx
It's been a long time since I've done this and my memory grows foggy

How do I feed a "y" response to a DOS command that wants to prompt me
for a Y/N answer?

How about if it prompts for two in a row?

Thanks,


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.


.



Relevant Pages

  • Re: Command prompt is displayed briefly, then disappears
    ... If you search for accessories and then open the folder and click command ... prompt, will it run? ... opens. ... MS MVP-IE, Mail, Security, Windows Client - since 2002 ...
    (microsoft.public.windowsxp.general)
  • Re: NTVDM hard error on Windows 2003 Server SP1
    ... Windows 2003 Server SP1 platform, there is a pop-up box with the error ... run regedit.exe from a DOS window command prompt. ... The server is not a domain controller, and is on a LAN with a Windows ...
    (microsoft.public.windows.server.general)
  • Re: Wildcard on Folder Name
    ... This is not DOS - it is the Command Prompt. ... Microsoft Windows XP - Command-line reference A-Z ... Microsoft Windows XP - MS-DOS subsystem commands ...
    (microsoft.public.windowsxp.general)
  • Re: "Read-only" Folders
    ... "Dos attrib command" - that's why. ... anti-Windows folks tell me that Windows is ...
    (microsoft.public.windowsxp.security_admin)
  • Re: cmd.exe title bar and prompt
    ... [[Whenever you subsequently use the CD command to change directories, ... How to Change the Title Bar Caption of the Command Prompt ... Copyright 1985-2001 Microsoft Corp. ... MS-MVP Windows Shell/User ...
    (microsoft.public.windowsxp.general)

Loading