Page 2 of 2
Posted: Tue Aug 16, 2011 8:32 pm
by FeyFre
Andrey_A_A
Exec("start /min /wait %ComSpec% /c taskkill /f /im wscript.exe")
по-моему так
Posted: Tue Aug 16, 2011 8:46 pm
by Andrey_A_A
FeyFre, что-то не срабатывает, я уже тоже что только не вставлял, не хочет
добавлено через 5 мин
сработал такой вариант, но всё равно окно мелькает, но побыстрее
Exec("%ComSpec% /c start /min taskkill /f /im wscript.exe")
Posted: Wed Aug 17, 2011 4:09 pm
by KDJ
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.

Posted: Wed Aug 17, 2011 5:45 pm
by KDJ
Another way is to use software tools to hide the console window or to kill processes.
On this subject, read here:
Russian:
http://wiki.oszone.net/index.php/%D0%A1 ... 0%BD%D0%B0
Polish:
http://www.searchengines.pl/Ukrywanie-o ... 02791.html
Example of using nircmd.exe (
http://www.nirsoft.net/utils/nircmd.html ):
"Wscript kill" Exec("%a\nircmd.exe killprocess Wscript.exe")
Nircmd.exe file located in AkelPad directory.
Posted: Thu Aug 18, 2011 11:15 am
by Andrey_A_A
Спасибо 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)