A
Adrian Marsh
All,
I'm writing login scripts for my AD W2K environment.
At the moment they are in normal .bat scripts using CMD.EXE
My problem is this, if any of my scripts run apps (.exe files) that return an errorlevel > 0, then at the end of execution the PC beeps. Actually it repeats the beeps for the total number of times that an app has returned >0, eg If I run setup.exe 5 times, and Cancel the app 5 times, I get 5 beeps. All the beeps are saved until my login.bat finishes.
So - how can I switch off the annoying beeps?
If I put a "set ERRORLEVEL=0" at the end of the scripts, it stills beeps.
Besides that, I'm happy with the scripts, so I don't want to have to learn another script language and re-write them.
Another alternative partial solution is if anyone knows a .exe file that can display window informational messages, along with say - an OK button. The tool I'm using at the moment uses ERRORLEVEL to return the button pressed, 1=OK,2=Cancel, etc, but then that causes the above beeps... arrghh!
Adrian
I'm writing login scripts for my AD W2K environment.
At the moment they are in normal .bat scripts using CMD.EXE
My problem is this, if any of my scripts run apps (.exe files) that return an errorlevel > 0, then at the end of execution the PC beeps. Actually it repeats the beeps for the total number of times that an app has returned >0, eg If I run setup.exe 5 times, and Cancel the app 5 times, I get 5 beeps. All the beeps are saved until my login.bat finishes.
So - how can I switch off the annoying beeps?
If I put a "set ERRORLEVEL=0" at the end of the scripts, it stills beeps.
Besides that, I'm happy with the scripts, so I don't want to have to learn another script language and re-write them.
Another alternative partial solution is if anyone knows a .exe file that can display window informational messages, along with say - an OK button. The tool I'm using at the moment uses ERRORLEVEL to return the button pressed, 1=OK,2=Cancel, etc, but then that causes the above beeps... arrghh!
Adrian