Re: DOS / XP bat file programming question
- From: "Pegasus \(MVP\)" <I.can@xxxxxxx>
- Date: Mon, 23 Jul 2007 15:13:55 +0200
"+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.
.
- Follow-Ups:
- Re: DOS / XP bat file programming question
- From: Paul Randall
- Re: DOS / XP bat file programming question
- Prev by Date: Re: registry editing
- Next by Date: Re: DOS / XP bat file programming question
- Previous by thread: registry editing
- Next by thread: Re: DOS / XP bat file programming question
- Index(es):
Relevant Pages
|
Loading