s_acsinte
asked on
arj.exe and wscript.shell
I wrote the following asp code
<%
set wshell = server.createobject("wscri pt.shell")
set proc=wshell.Exec("c:\test\ arj.exe a -e c:\test\test.arj c:\test\*.txt")
Do While proc.Status = 0
Loop
Response.Write("<BR>")
Response.Write("a="&proc.S tdOut.Read All())
Response.Write("<BR>")
Response.Write("b="&proc.S tdErr.Read All())
set wshell = nothing
%>
after the file test.arj was created, I deleted all the txt files and I replaced the line in the asp code with
set proc=wshell.Exec("c:\test\ arj.exe e -y c:\test\test.arj")
but the txt files are not created and I don't know why. Please help !
<%
set wshell = server.createobject("wscri
set proc=wshell.Exec("c:\test\
Do While proc.Status = 0
Loop
Response.Write("<BR>")
Response.Write("a="&proc.S
Response.Write("<BR>")
Response.Write("b="&proc.S
set wshell = nothing
%>
after the file test.arj was created, I deleted all the txt files and I replaced the line in the asp code with
set proc=wshell.Exec("c:\test\
but the txt files are not created and I don't know why. Please help !
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
sorry TheKenman, bur as I said my "arj.exe a" works fine, the test.arj file is created.
it's "arj.exe e" that doesn't work.
I even tried your suggestion (with e instead of a) and the files are not extracted.
it's "arj.exe e" that doesn't work.
I even tried your suggestion (with e instead of a) and the files are not extracted.
Well did you figure it out?
Thanks =)
Thanks =)
ASKER
both IUSR_machine and IWAM_machine have full control on c:\temp
(remember test.arj was created with the first asp)
I've tried using x, but nothing.
(the command works when used at DOS prompt)