Regd:ASPExec Component
Hi Dudes,
Hope you are all doing great!I am new to this Communtiy,so please accept me as ur dude.
Coming to the point,I am facing problem in Aspexec Component.Actually for my website i have to convert the ,avi files into ,flv files to run in Flash player.For this I am using Ffmpeg tool to convert the files,this FFmpeg.exe will run thru Command prompt.For this i have used Aspexec component to run it.This file is executing but i need to run the batch files.its not accepting this .I ahve pasted the code below.please provide me the solution for this,
<%@ Language=VBScript %>
<%Option Explicit %>
<%
dim Executor,strResult,WaitObj
Response.Buffer = true
Set Executor = Server.CreateObject("ASPExec.Execute")
Executor.Application = "C:\Documents and Settings\Administrator\Desktop\Cornerworld\FrontEn d\Band\Player\enginetest\ffmpeg .exe"
'Executor.Application ="ffmpeg -i GLOBE.AVI -r 25 -acodec mp3 -ar 22050 -s 320x240 -y GLOBE_21.flv"
Executor.Parameters = "C:\Documents and Settings\Administrator\Desktop\Cornerworld\FrontEn d\Band\Player\enginetest\test.bat"
Executor.ShowWindow = True
'Executor.Application ="C:\Documents and Settings\Administrator\Desktop\Cornerworld\FrontEn d\Band\Player\enginetest\ffmpeg.exe\ffmpeg -i GLOBE.AVI -r 25 -acodec mp3 -ar 22050 -s 320x240 -y GLOBE_FIRST.flv "
'Executor.Parameters = "test.bat"
'response.write "Attempting to execute "&Executor.Parameters & "<br>"
Response.Write "Attempting to execute " & Executor.Application & "<br>"
'response.write "bnxcb"&Executor.Parameters&"<br>"
strResult = Executor.ExecuteDosApp
Response.Write strResult
%>
Awaiting For your replys,
Thanks And Regards,
Sruthi
|