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.