| View previous topic :: View next topic |
| Author |
Message |
ice
Joined: 23 Jun 2004 Posts: 3
|
Posted: Mon Jul 05, 2004 10:12 am Post subject: How to hide the debug screen? |
|
|
How to hide the debug screen if there are somthing wrong in script file, when people run the script?
I tried /ErrorStdOut , but seems no helpful. |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Mon Jul 05, 2004 1:30 pm Post subject: |
|
|
| The best way is to change your script so that it doesn't generate runtime errors. For example, if RunWait is used on a nonexistent EXE file, you will get an error. So the script should first check that the file exists with IfExist. |
|
| Back to top |
|
 |
Guest
|
Posted: Mon Jul 05, 2004 2:19 pm Post subject: |
|
|
| yeah, have to check it carefuly. |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Mon Jul 05, 2004 2:51 pm Post subject: |
|
|
| Because most syntax errors are caught the moment the script is loaded, runtime errors are quite rare. For most commands, it is impossible to get a runtime error since ErrorLevel is used instead. |
|
| Back to top |
|
 |
|