Link to home
Start Free TrialLog in
Avatar of StewartTechnologies
StewartTechnologiesFlag for United States of America

asked on

How to code in auto "yes" response in .bat script.

Hello-

I am writing a basic windows .bat file to stop a network share. It is asking for a y/n and enter input before it can stop the share.

e.g net share folder \\server /delete

How do i code in the "yes" to automatically complete my program without manual input.

Note: The script will be a scheduled task, so it needs to auto run without manual input.
SOLUTION
Avatar of Bartender_1
Bartender_1
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of StewartTechnologies

ASKER

Thanks.