Option explicit
Dim WshShell
Set WshShell = CreateObject("Wscript.Shell")
WshShell.Run "Batch_operation.bat"

wshshell.XXXX "y"
wshshell.XXXX "{ENTER}"

What should I put in the "XXXX" to make the program enter "Y" and then move down a line ("{ENTER}")

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.