General discussion
June 8, 2002 at 01:13 PM
firesheep43

Yenter command in Batch Files?

by firesheep43 . Updated 24 years, 3 months ago

Ok, help out an aging admin in need of a memorey upgrade! I recall vaguely seeing in an NT batch file somewhere an entry that resembled Yenter or Enter, its purpose was to provide a reply Y or N to a prompt from a command in a batch file. Example: Format a: FS:/FAT /X .
When run from a command line you get the prompt to Insert a Disk and Press enter and at the end ‘Do you want to format another disk?’. How do I in Win2000, provide this answer in a batch file? Any other suggestions welcome. Oh, I am writing a batch file for virus removal. Thanks. Chris

This discussion is locked

All Comments