473,395 Members | 1,797 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Invoking an exe file

I tried the code bellow and I am getting an error:
protected void Button1_Click(object sender, EventArgs e)
{
System.Diagnostics.Process pProcess = new
System.Diagnostics.Process();
pProcess.StartInfo.FileName = "C:\\Documents and
Settings\\Eugene Anthony\\Desktop\\mplayer\\mencoder.exe -lavfopts
i_certify_that_my_video_stream_does_not_use_b_fram es MAX.mpg -o
vuurwerk1.flv -of lavf -ovc lavc -oac lavc -lavcopts
vcodec=flv:vbitrate=500:autoaspect:mbd=2:mv0:trell :v4mv:cbp:last_pred=3:
predia=2:dia=2:precmp=2:cmp=2:subcmp=2:preme=2:tur bo:acodec=mp3:abitrate
=56 -srate 22050 -af lavcresample=22050";
pProcess.Start();
}
The error is:
+ $exception {"The system cannot find the file
specified"} System.Exception {System.ComponentModel.Win32Exception}
How do I solve the problem?

Eugene Anthony

*** Sent via Developersdex http://www.developersdex.com ***
Feb 12 '07 #1
3 957
the FileName should just be the filename, not filename and args.

-- bruce (sqlwork.com)

Eugene Anthony wrote:
I tried the code bellow and I am getting an error:
protected void Button1_Click(object sender, EventArgs e)
{
System.Diagnostics.Process pProcess = new
System.Diagnostics.Process();
pProcess.StartInfo.FileName = "C:\\Documents and
Settings\\Eugene Anthony\\Desktop\\mplayer\\mencoder.exe -lavfopts
i_certify_that_my_video_stream_does_not_use_b_fram es MAX.mpg -o
vuurwerk1.flv -of lavf -ovc lavc -oac lavc -lavcopts
vcodec=flv:vbitrate=500:autoaspect:mbd=2:mv0:trell :v4mv:cbp:last_pred=3:
predia=2:dia=2:precmp=2:cmp=2:subcmp=2:preme=2:tur bo:acodec=mp3:abitrate
=56 -srate 22050 -af lavcresample=22050";
pProcess.Start();
}
The error is:
+ $exception {"The system cannot find the file
specified"} System.Exception {System.ComponentModel.Win32Exception}
How do I solve the problem?

Eugene Anthony

*** Sent via Developersdex http://www.developersdex.com ***
Feb 12 '07 #2
How do I parse the argument?

Eugene Anthony

*** Sent via Developersdex http://www.developersdex.com ***
Feb 12 '07 #3
I tried this:

protected void Button1_Click(object sender, EventArgs e)
{
System.Diagnostics.Process pProcess = new
System.Diagnostics.Process();
pProcess.StartInfo.FileName = "C:\\Documents and
Settings\\Eugene Anthony\\My Documents\\Visual Studio
2005\\WebSites\\WebSite13\\mencoder.exe";
pProcess.StartInfo.Arguments = "-lavfopts
i_certify_that_my_video_stream_does_not_use_b_fram es MAX.mpg -o
vuurwerk1.flv -of lavf -ovc lavc -oac lavc -lavcopts
vcodec=flv:vbitrate=500:autoaspect:mbd=2:mv0:trell :v4mv:cbp:last_pred=3:
predia=2:dia=2:precmp=2:cmp=2:subcmp=2:preme=2:tur bo:acodec=mp3:abitrate
=56 -srate 22050 -af lavcresample=22050";
pProcess.Start();
}

No errors but the process does not function.

Eugene Anthony

*** Sent via Developersdex http://www.developersdex.com ***
Feb 12 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Anand K Rayudu | last post by:
Hi I have extended/embedded python into my application, it is working great, The documentation is too good, I could replace existing scripting tool to python in no time. I have one problem...
0
by: Prasad | last post by:
We are invoking a SQL DTS component (lets call it Comp1) built by us in another component (Comp2).Comp1 was built by creating the DTS package using the SQL DTS wizard and then saving it as a VB...
2
by: JeffFinnan | last post by:
I am trying to develop some script to open files for use in a particular plugin called Chime which is used for molecular visualization. I am just experimenting right now. The whole script works...
3
by: bbxrider | last post by:
running win2k adv server/ iis5.0 trying to setup on my web page where browsers can download a file, an .xls so been trying to figure out with a download 'link' what invokes the standard ms file...
6
by: Patrick | last post by:
Following earlier discussions about invoking a .NET class library via ..NET-COM Interop (using regasm /tlb) at...
0
by: domnics | last post by:
Hi, I am having a problem invoking a JAR file. I had created a Java package using Eclipse and I can run it under Eclipse. I want to create a JAR file that can be invoked by a double click.. My...
2
by: Tim Reed | last post by:
Hello ... my Dad is dabbling in VB & has a question about invoking a PDF (to display a help file or manual). Myself, I don't know VB - but I *do* know how to post to a NG <g>. If anyone has a...
1
by: sukatoa | last post by:
A86 code (Assembly) jmp main main: mov ah,0h ;Service 0, Captures the input and stores it to register al... int 16h ; Interrupt 16 BIOS... mov ah,2h ;Service 2 mov...
2
by: =?Utf-8?B?SmltIE93ZW4=?= | last post by:
Hi John, Hopefully this post will find its way back to you - or perhaps be answered by someone else. As I mentioned in my last post on the earlier portion of this thread, changing the...
6
by: John O'Flaherty | last post by:
Hello. I have an ms acess database that I use to track my mp3 files. I have included code that lets me select and play files by invoking an mp3 player (Winamp). This is done by using visual basic...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.