Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script that requires answer, how do I set an auto answer?

Status
Not open for further replies.

LoffKat

MIS
May 8, 2003
49
US
Hi, I'm running a very basic script as I'm rather new to scripting. I am stopping services for a backup job because they make the backup fail. The following is the bat script.

net stop "Symantec Mail Security for Microsoft Exchange"
net stop "GFI MailEssentials Attendant"
net stop "GFI POP2Exchange"
net stop "GFI List Server"

The last 3 are one program which requires a prompt during the running of the script. How do I get the script to automatically answer yes when asked if I want to stop the other services as well? Please let me know! thanks!
 
if i recall you want to do

net stop "Symantec Mail Security for Microsoft Exchange" /yes
net stop "GFI MailEssentials Attendant" /yes
net stop "GFI POP2Exchange" /yes
net stop "GFI List Server" /yes

Gurner

 
You could also use SendKeys to send the keyboard input.

I hope you find this post helpful.

Regards,

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top