Discussion Locked

Adding a <CR> on a command in a script

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have a added a Windows based command to a simple windows shell script that requires to be entered before the command will run. Currently the script hangs unless I press return then it will continue. Can a be added to the end of the command somehow?

Can this be done in Windows shell script or can it be done in WSH or a VBScript? Any examples would be helpful.

2 replies

by dryflies

Which command? I am sure that you can accomplish your goal in any of the scripting hosts but exactly how to do it requires knowledge of the command you want to execute.

This discussion is closed to new replies.