WHS и Word

TASADAR

New member
Регистрация
06.11.2004
Сообщения
11
Реакции
1
Баллы
3
Возраст
42
Есть WHS скрипт написанный на VBScript. Он берет заполняет doc шаблон из текстового файла. Иногда выходит онко где пишется:
"The script you are executing is taking longer than expected to run. Click End to abort the script, or Continue to continue script execution".
Пользователь может нажать End, что не желательно. Как запретить выход этого окна.
 

ploki

Active member
Регистрация
16.05.2005
Сообщения
237
Реакции
180
Баллы
43
Местоположение
Москва
У WScript.exe и CScript.exe куча параметров. Я обычно юзаю следующие (описание из MSDN):

//B (Batch mode; suppresses command-line display of user prompts and script errors. Default is Interactive mode.)

//I (Default. Interactive mode; allows display of user prompts and script errors Opposite of Batch mode.)

//Job:<JobID> (Runs the specified JobID from the .wsf file.)

//nologo (Prevents display of an execution banner at run time. Default is logo.)

//T:nn (Enables time-out: the maximum number of seconds the script can run. The default is no limit. The //T parameter prevents excessive execution of scripts by setting a timer. When execution time exceeds the specified value, CScript interrupts the script engine using the IActiveScript::InterruptThread method and terminates the process.)

Попробуй "//B". Может, поможет.

P.S. Не WHS, а WSH.
 
198 175Темы
635 146Сообщения
3 618 415Пользователи
еу4уууеууеНовый пользователь
Верх