Andrey_A_A
Exec("start /min /wait %ComSpec% /c taskkill /f /im wscript.exe")
по-моему так
Вызов Exec и двойные кавычки
- Author
- Message
-
Offline
- Posts: 670
- Joined: Thu Jun 03, 2010 8:47 am
- Location: Сочи, Хоста
- Contact:
-
Offline
- Posts: 1949
- Joined: Sat Mar 06, 2010 7:40 pm
- Location: Poland
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.
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.
-
Offline
- Posts: 1949
- Joined: Sat Mar 06, 2010 7:40 pm
- Location: Poland
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.
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.
-
Offline
- Posts: 670
- Joined: Thu Jun 03, 2010 8:47 am
- Location: Сочи, Хоста
- Contact: