Results 1 to 2 of 2
  1. #1
    2 Star Lounger
    Join Date
    Mar 2002
    Location
    Western NY, USA
    Posts
    157
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Answer Y/N prompt in batch file

    I have done this before, but it has been so long I cannot remember how.

    I want to automatically answer the Are you sure (Y.N) prompt in a cmd batch file

    thanks.

  2. #2
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    Cincinnati, Ohio, USA
    Posts
    7,089
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Answer Y/N prompt in batch file

    Precede the command with an ECHO Y statement, thus:<pre>echo y|format c:</pre>

    -Mark

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •