ObjWshell.run

I got samples on http://www.aspfaq.com/show.asp?id=2059 and runs ok to dir ms-dos command, but to others commands like del, rd, deltree, etc. it has not had any effect, even it has not returned errors.

Using batch file is possible, but and using "%COMSPEC% /C?I read all help from ms-dos to "%COMSPEC% , but untill now I could not find solution

Set objWshell = CreateObject("WScript.Shell")

objWshell.run "%COMSPEC% /C d:
d teste", 0, TRUE '»»it has no effect.
objWshell.run "%COMSPEC% /C dir *.txt d: > d:dir.txt", 0, TRUE '»» here runs OK

Set objWshell = nothing

View Replies


ADVERTISEMENT

ObjWshell.Run :: Command COMSPEC Disappeared Of All My Machines

I was using:

<% Set objWshell = Server.CreateObject("WScript.Shell") objWshell.Run "%COMSPEC% /C ren topoX.jpg topo_cliente.jpg", 0, TRUE %>

BUT the comand COMSPEC disapeared of all my machines which we have ms-windows 2000 installed!So now no-one machine can continue run my routines which accessed ms-dos by ASP. COULD anybody send me the comspec command by e-mail whith the subject: Comspec to WScript.Shell.

View Replies View Related

ObjWshell.Run "%COMSPEC% /C Kill Iexplore.exe", 0, TRUE ???

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

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved