Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi,
When I run setup.exe, it prompts to "Press Enter To Continue". Now I want to automate this, ie put setup.exe in a script or batch file. So, when I run this batch file, it should be executed automatically without waiting for anyone to press Enter Key. So, can someone please help me how to catch Enter Key.
Sajju (India)

This can't be a solaris question. It doesn't use .exe files.
"Best Practices", Event viewer, host file, perfmon, antivirus, anti-spyware, Live CD's, backups, are in my top 10

This is the script, I am running in Sun Solaris...
/sas/sassetup # sassetup file path
# here I need to catch the Enter Key & execution continues.
2 # passing parameter for renewal
:END

Have you considered redirecting a carriage return? You can redirect a filename that just has a carriage return:
/sas/sasetup < filename
or you might try a Unix here document:
/sas/sassetup << NAILS
NAILS
echo "continue with your script"

There is a way to embed enter. From dos I think it was an alt + something + something key stroke. If forget it now.
"Best Practices", Event viewer, host file, perfmon, antivirus, anti-spyware, Live CD's, backups, are in my top 10

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |