| View previous topic :: View next topic |
| Author |
Message |
FeyFre
Joined: 07 Aug 2007 Posts: 1907 Location: Vinnitsa, Ukraine
|
Posted: Tue Aug 16, 2011 8:32 pm Post subject: |
|
|
Andrey_A_A
Exec("start /min /wait %ComSpec% /c taskkill /f /im wscript.exe")
по-моему так |
|
| Back to top |
|
 |
Andrey_A_A
Joined: 03 Jun 2010 Posts: 483 Location: Сочи, Хоста
|
Posted: Tue Aug 16, 2011 8:46 pm Post subject: |
|
|
FeyFre, что-то не срабатывает, я уже тоже что только не вставлял, не хочет
добавлено через 5 мин
сработал такой вариант, но всё равно окно мелькает, но побыстрее
Exec("%ComSpec% /c start /min taskkill /f /im wscript.exe") |
|
| Back to top |
|
 |
KDJ
Joined: 06 Mar 2010 Posts: 1080 Location: Poland
|
Posted: Wed Aug 17, 2011 4:09 pm Post subject: |
|
|
Andrey_A_A
You can not hide console window (cmd.exe), the above methods.
One way is to use link file (eg. ...\AkelPad\WscriptKill.lnk):
"Wscript kill" Exec("rundll32.exe shell32, ShellExec_RunDLL %a\WscriptKill.lnk")
Command in the link:
%ComSpec% /c taskkill /f /im Wscript.exe
and run as minimized.
 |
|
| Back to top |
|
 |
KDJ
Joined: 06 Mar 2010 Posts: 1080 Location: Poland
|
|
| Back to top |
|
 |
Andrey_A_A
Joined: 03 Jun 2010 Posts: 483 Location: Сочи, Хоста
|
Posted: Thu Aug 18, 2011 11:15 am Post subject: |
|
|
Спасибо KDJ за подсказку. Получилось!
"Завершить процесс Wscript.exe Ctrl+Shift+Alt+W" Exec(`"%a\AkelFiles\Tools\NirCmd\NirCmd.exe" execmd taskkill /f /im wscript.exe`) Icon("%a\AkelPadImage.dll",528) |
|
| Back to top |
|
 |
|