By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,558 Members | 1,607 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,558 IT Pros & Developers. It's quick & easy.

objWshell.Run "%COMSPEC% /C kill iexplore.exe", 0, TRUE ???

P: n/a
HI people,
what is wrong in the code bellow to kill iexplore.exe process after
processing my page??

'»»Before comes routines to access data base and to send email.
Set objWshell = Server.CreateObject("WScript.Shell")
objWshell.Run "%COMSPEC% /C kill iexplore.exe", 0, TRUE

VILMAR
BRAZIL
PRAIA GRANDE/SP
Jul 19 '05 #1
Share this Question
Share on Google+
10 Replies


P: n/a
Uh... you realize that this runs on the server, not the client......

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Vilmar Brazão de Oliveira" <su*****@hitecnet.com.br> wrote in message
news:e0**************@TK2MSFTNGP12.phx.gbl...
HI people,
what is wrong in the code bellow to kill iexplore.exe process after
processing my page??

'»»Before comes routines to access data base and to send email.
Set objWshell = Server.CreateObject("WScript.Shell")
objWshell.Run "%COMSPEC% /C kill iexplore.exe", 0, TRUE

VILMAR
BRAZIL
PRAIA GRANDE/SP

Jul 19 '05 #2

P: n/a
This will make an attempt to kill iexplore.exe on the SERVER you realize,
yes?

Also, kill.exe is not standard in W2K (if that's what you're using). It's
part of the W2K Resource Kit, IIRC, in W2K.

Are you getting an error?

Ray at work

"Vilmar Brazão de Oliveira" <su*****@hitecnet.com.br> wrote in message
news:e0**************@TK2MSFTNGP12.phx.gbl...
HI people,
what is wrong in the code bellow to kill iexplore.exe process after
processing my page??

'»»Before comes routines to access data base and to send email.
Set objWshell = Server.CreateObject("WScript.Shell")
objWshell.Run "%COMSPEC% /C kill iexplore.exe", 0, TRUE

VILMAR
BRAZIL
PRAIA GRANDE/SP

Jul 19 '05 #3

P: n/a
hi guys,
I want to attempt kill process only on the server.
it is not returning me any error.
what is the problem?
thanks,

--

««««««««»»»»»»»»»»»»»»
Vlmar Brazão de Oliveira
Desenvolvimento Web
HI-TEC

"Curt_C [MVP]" <software_AT_darkfalz.com> escreveu na mensagem
news:#m**************@TK2MSFTNGP12.phx.gbl...
Uh... you realize that this runs on the server, not the client......

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Vilmar Brazão de Oliveira" <su*****@hitecnet.com.br> wrote in message
news:e0**************@TK2MSFTNGP12.phx.gbl...
HI people,
what is wrong in the code bellow to kill iexplore.exe process after
processing my page??

'»»Before comes routines to access data base and to send email.
Set objWshell = Server.CreateObject("WScript.Shell")
objWshell.Run "%COMSPEC% /C kill iexplore.exe", 0, TRUE

VILMAR
BRAZIL
PRAIA GRANDE/SP


Jul 19 '05 #4

P: n/a
> what is wrong in the code bellow to kill iexplore.exe process after
processing my page??
First of all, why is there an iexplore.exe process on the server? And why
are you killing it from ASP?
Set objWshell = Server.CreateObject("WScript.Shell")
objWshell.Run "%COMSPEC% /C kill iexplore.exe", 0, TRUE


What is the actual problem? You ask "what is wrong" but I have no idea what
that means. Have you tried logging in to the server as IUSR_<machine_name>
and running the same command from a command prompt? What happens? Are you
sure kill.exe is even installed? (This is a tool that comes with the
resource kit, and is not installed by default.)
Jul 19 '05 #5

P: n/a
Hi Vilmar,

If you log in to the server and execute this in a .vbs file, for example,
does it work? (Remove "Server." from .vbs code)

Do you have kill.exe?

Ray at work

"Vilmar Brazão de Oliveira" <su*****@hitecnet.com.br> wrote in message
news:er**************@TK2MSFTNGP10.phx.gbl...
hi guys,
I want to attempt kill process only on the server.
it is not returning me any error.
what is the problem?
thanks,

--

««««««««»»»»»»»»»»»»»»
Vlmar Brazão de Oliveira
Desenvolvimento Web
HI-TEC

"Curt_C [

Jul 19 '05 #6

P: n/a
"Vilmar Brazão de Oliveira" <su*****@hitecnet.com.br> wrote in message
news:er**************@TK2MSFTNGP10.phx.gbl...
hi guys,
I want to attempt kill process only on the server.
it is not returning me any error.
what is the problem?
thanks,


Is the server also the client? That is, you are sitting at the server
browsing with IE, and once complete you want the browser window to close...
is that correct?

Jul 19 '05 #7

P: n/a
HI GUYS,
the server is the client too.
I only want to kill the process iexplore.exe in the end of asp page
interpretation.
I have the kill program on the server, but still is not running as I hope!
thank untill now,

--

««««««««»»»»»»»»»»»»»»
Vlmar Brazão de Oliveira
Desenvolvimento Web
HI-TEC
"Peter Foti" <pe****@systolicNOSPAMnetworks.com> escreveu na mensagem
news:vv************@corp.supernews.com...
"Vilmar Brazão de Oliveira" <su*****@hitecnet.com.br> wrote in message
news:er**************@TK2MSFTNGP10.phx.gbl...
hi guys,
I want to attempt kill process only on the server.
it is not returning me any error.
what is the problem?
thanks,
Is the server also the client? That is, you are sitting at the server
browsing with IE, and once complete you want the browser window to

close... is that correct?

Jul 19 '05 #8

P: n/a
hi foo man,
it runs ok in ms-dos command prompt.
kill processX
I don´t know why is not killing by asp!!
thanks

--

««««««««»»»»»»»»»»»»»»
Vlmar Brazão de Oliveira
Desenvolvimento Web
HI-TEC
"Foo Man Chew" <fo*@man.chew> escreveu na mensagem
news:uV**************@tk2msftngp13.phx.gbl...
what is wrong in the code bellow to kill iexplore.exe process after
processing my page??
First of all, why is there an iexplore.exe process on the server? And why
are you killing it from ASP?
Set objWshell = Server.CreateObject("WScript.Shell")
objWshell.Run "%COMSPEC% /C kill iexplore.exe", 0, TRUE


What is the actual problem? You ask "what is wrong" but I have no idea

what that means. Have you tried logging in to the server as IUSR_<machine_name> and running the same command from a command prompt? What happens? Are you sure kill.exe is even installed? (This is a tool that comes with the
resource kit, and is not installed by default.)

Jul 19 '05 #9

P: n/a
Why would you want to have the web server kill your web browser if and only
if it happens to be the same machine and is Internet Explorer? That makes
absolutely no sense to me.

I wonder if the problem is that IIS is a service and does not have the
rights to terminate the process:
http://msdn.microsoft.com/library/en...ateprocess.asp

Paul

"Vilmar Brazão de Oliveira" <su*****@hitecnet.com.br> wrote in message
news:uI**************@TK2MSFTNGP09.phx.gbl...
HI GUYS,
the server is the client too.
I only want to kill the process iexplore.exe in the end of asp page
interpretation.
I have the kill program on the server, but still is not running as I hope!
thank untill now,

--

««««««««»»»»»»»»»»»»»»
Vlmar Brazão de Oliveira
Desenvolvimento Web
HI-TEC
"Peter Foti" <pe****@systolicNOSPAMnetworks.com> escreveu na mensagem
news:vv************@corp.supernews.com...
"Vilmar Brazão de Oliveira" <su*****@hitecnet.com.br> wrote in message
news:er**************@TK2MSFTNGP10.phx.gbl...
hi guys,
I want to attempt kill process only on the server.
it is not returning me any error.
what is the problem?
thanks,


Is the server also the client? That is, you are sitting at the server
browsing with IE, and once complete you want the browser window to

close...
is that correct?


Jul 19 '05 #10

P: n/a
Try "kill iexplore.exe" at the Command Prompt precisely. Then try
objWshell.Run "kill iexplore.exe" precisely. This is the only way to
properly prove that it works at the Command Prompt and not from the ASP.
Your description of what you did is not as rigorous as that. I made another
post with suggestions as to why that might be.

Paul

"Vilmar Brazão de Oliveira" <su*****@hitecnet.com.br> wrote in message
news:u$**************@TK2MSFTNGP10.phx.gbl...
hi foo man,
it runs ok in ms-dos command prompt.
kill processX
I don´t know why is not killing by asp!!
thanks

--

««««««««»»»»»»»»»»»»»»
Vlmar Brazão de Oliveira
Desenvolvimento Web
HI-TEC
"Foo Man Chew" <fo*@man.chew> escreveu na mensagem
news:uV**************@tk2msftngp13.phx.gbl...
what is wrong in the code bellow to kill iexplore.exe process after
processing my page??


First of all, why is there an iexplore.exe process on the server? And why are you killing it from ASP?
Set objWshell = Server.CreateObject("WScript.Shell")
objWshell.Run "%COMSPEC% /C kill iexplore.exe", 0, TRUE


What is the actual problem? You ask "what is wrong" but I have no idea

what
that means. Have you tried logging in to the server as

IUSR_<machine_name>
and running the same command from a command prompt? What happens? Are

you
sure kill.exe is even installed? (This is a tool that comes with the
resource kit, and is not installed by default.)


Jul 19 '05 #11

This discussion thread is closed

Replies have been disabled for this discussion.