How to provide input for prompts ?
hi gurus,
running executable prompts confirmation when invoked,
c:\> commit.exe
are sure want continue (y/n) ?
my script needs call executable (commit.exe) , provide input prompt either 'y' or 'n'. how take care of in powershell, such when expected prompt, can enter required input?
here enter 'y' or 'n' prompt.
-pranav
hello pranav,
that depends on executable using , if excepts parameter surpress prompt.
e.g. del *.* command, can add parameter /q surpress prompt "do ...?"
olaf helper
* cogito ergo sum * errare humanum est * quote erat demonstrandum *
wenn ich denke, ist das ein fehler und das beweise ich täglich
blog xing
Windows Server > Windows PowerShell
Comments
Post a Comment