How can I automatically answer yes on a CMD Prompt?

Viewed 317

I tried to delete the vss shadow copies via cmd and it asks for a prompt y/n. How do I automatically answer yes?

This is the syntax:

echo y | vssadmin delete shadows /all > C:\Temp\VssDeleteDriveC.log

This is the result of the syntax entered:

vssadmin 1.1 - Volume Shadow Copy Service administrative command-line tool
(C) Copyright 2001-2013 Microsoft Corp.

Do you really want to delete 1 shadow copies (Y/N): [N]? N

Image

0 Answers
Related