Hi,
My Script to run a Command-Line from ASP does not work. No errors are
returned either.
It is on IIS. The directory where the script exists is on Drive I:, The
executable .exe is on Drive D:
Do you see any problems with the script below? Can you help me modify it?

<%
Dim objWSS
Const cCMD = "clw45.exe -i k:\o\1.wmv -o k:\o\2.ghh -w 128 -df 0 -m
2 -p"
Set objWSS = CreateObject("WScript.Shell")
objWSS.CurrentDirectory = "D:\Program Files\Program\The Program\"
objWSS.Run "%COMSPEC% /c " & cCMD,,True
%>

Thank you very much for your help.
Lucas

Re: My Script to run a Command-Line from ASP does not work. by Ray

Ray
Thu Oct 23 08:14:17 CDT 2003

Please take a look here for the 4th time.
www.aspfaq.com/5003

Ray at work

"Lucas Cowald" <nospam@nospamthanks.com> wrote in message
news:O4CdnegZhuJV5AqiRVn-sA@comcast.com...
> Hi,
> My Script to run a Command-Line from ASP does not work. No errors are
> returned either.
> It is on IIS. The directory where the script exists is on Drive I:, The
> executable .exe is on Drive D:
> Do you see any problems with the script below? Can you help me modify it?
>
> <%
> Dim objWSS
> Const cCMD = "clw45.exe -i k:\o\1.wmv -o k:\o\2.ghh -w 128 -df 0 -m
> 2 -p"
> Set objWSS = CreateObject("WScript.Shell")
> objWSS.CurrentDirectory = "D:\Program Files\Program\The Program\"
> objWSS.Run "%COMSPEC% /c " & cCMD,,True
> %>
>
> Thank you very much for your help.
> Lucas
>
>



Re: My Script to run a Command-Line from ASP does not work. by Lucas

Lucas
Thu Oct 23 14:47:48 CDT 2003

Please stop doing it. I need to get a solution to my problem.


"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:OWOxReWmDHA.3320@tk2msftngp13.phx.gbl...
> Please take a look here for the 4th time.
> www.aspfaq.com/5003
>
> Ray at work
>
> "Lucas Cowald" <nospam@nospamthanks.com> wrote in message
> news:O4CdnegZhuJV5AqiRVn-sA@comcast.com...
> > Hi,
> > My Script to run a Command-Line from ASP does not work. No errors are
> > returned either.
> > It is on IIS. The directory where the script exists is on Drive I:, The
> > executable .exe is on Drive D:
> > Do you see any problems with the script below? Can you help me modify
it?
> >
> > <%
> > Dim objWSS
> > Const cCMD = "clw45.exe -i k:\o\1.wmv -o k:\o\2.ghh -w 128 -df 0 -m
> > 2 -p"
> > Set objWSS = CreateObject("WScript.Shell")
> > objWSS.CurrentDirectory = "D:\Program Files\Program\The Program\"
> > objWSS.Run "%COMSPEC% /c " & cCMD,,True
> > %>
> >
> > Thank you very much for your help.
> > Lucas
> >
> >
>
>



Re: My Script to run a Command-Line from ASP does not work. by Michael

Michael
Thu Oct 23 16:56:43 CDT 2003

Lucas Cowald wrote:
> Please stop doing it. I need to get a solution to my problem.


See my reply on the copy you posted to

microsoft.public.inetsdk.programming.scripting.vbscript

I also hope you see the point of what Ray is trying to tell you ;-)...



--
Michael Harris
Microsoft.MVP.Scripting

Microsoft® Windows®2000 Scripting Guide
http://www.microsoft.com/technet/scriptcenter/scrguide/sagsas_overview.asp

TechNet Script Center Sample Scripts
http://www.microsoft.com/downloads/release.asp?ReleaseID=38942

WSH 5.6 documentation download
http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en



Re: My Script to run a Command-Line from ASP does not work. by Lucas

Lucas
Thu Oct 23 17:54:01 CDT 2003

Hi Michael,

I tried your advice. I get exit code: 1
But the script still does not run the command. When I do it in the Command
window manually, it runs. Below is the latest that I tried:

<%
Dim objWSS, Path, cCMD, exitCode

Path = "D:\Program Files\Oplayo\Oplayo Command Line Encoder 5.5.1 for
J2ME\"
cCMD= "cle55.exe -i k:\o\1.mpeg -o k:\o\2.mvq -w 128 -df 0 -m 2 -p"

Set objWSS = CreateObject("WScript.Shell")

objWSS.Run "%COMSPEC% /c " & Path & cCMD,,True

exitCode = objWSS.Run ("%COMSPEC% /c " & Path & cCMD,,True)

Response.Write exitCode
%>

"Michael Harris (MVP)" <mikhar@mvps.org> wrote in message
news:%23%23C$MCbmDHA.3688@TK2MSFTNGP11.phx.gbl...
> Lucas Cowald wrote:
> > Please stop doing it. I need to get a solution to my problem.
>
>
> See my reply on the copy you posted to
>
> microsoft.public.inetsdk.programming.scripting.vbscript
>
> I also hope you see the point of what Ray is trying to tell you ;-)...
>
>
>
> --
> Michael Harris
> Microsoft.MVP.Scripting
>
> Microsoft® Windows®2000 Scripting Guide
> http://www.microsoft.com/technet/scriptcenter/scrguide/sagsas_overview.asp
>
> TechNet Script Center Sample Scripts
> http://www.microsoft.com/downloads/release.asp?ReleaseID=38942
>
> WSH 5.6 documentation download
>
http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en
>
>



Re: My Script to run a Command-Line from ASP does not work. by Lucas

Lucas
Thu Oct 23 18:02:34 CDT 2003

Hi Michael,

I tried your advice. I get exit code: 1
But the script still does not run the command. When I do it in the Command
window manually, it runs. Below is the latest that I tried:

<%
Dim objWSS, Path, cCMD, exitCode

Path = "D:\Program Files\Program\The Program\"
cCMD= "clw45.exe -i k:\o\1.wmv -o k:\o\2.ghh -w 128 -df 0 -m 2 -p"

Set objWSS = CreateObject("WScript.Shell")

objWSS.Run "%COMSPEC% /c " & Path & cCMD,,True

exitCode = objWSS.Run ("%COMSPEC% /c " & Path & cCMD,,True)

Response.Write exitCode
%>
"Michael Harris (MVP)" <mikhar@mvps.org> wrote in message
news:%23%23C$MCbmDHA.3688@TK2MSFTNGP11.phx.gbl...
> Lucas Cowald wrote:
> > Please stop doing it. I need to get a solution to my problem.
>
>
> See my reply on the copy you posted to
>
> microsoft.public.inetsdk.programming.scripting.vbscript
>
> I also hope you see the point of what Ray is trying to tell you ;-)...
>
>
>
> --
> Michael Harris
> Microsoft.MVP.Scripting
>
> Microsoft® Windows®2000 Scripting Guide
> http://www.microsoft.com/technet/scriptcenter/scrguide/sagsas_overview.asp
>
> TechNet Script Center Sample Scripts
> http://www.microsoft.com/downloads/release.asp?ReleaseID=38942
>
> WSH 5.6 documentation download
>
http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en
>
>



Re: My Script to run a Command-Line from ASP does not work. by Michael

Michael
Thu Oct 23 21:40:51 CDT 2003

> I tried your advice....

Well, only part of it.


>> See my reply on the copy you posted to
>> microsoft.public.inetsdk.programming.scripting.vbscript

This, you did...


>> I also hope you see the point of what Ray is trying to tell you
>> ;-)...

This, you didn't...

I'll only continue this if you promise to stay on the thread in

microsoft.public.inetsdk.programming.scripting.vbscript


--
Michael Harris
Microsoft.MVP.Scripting