Quick Q about running cmd inside the IDE

Phix

Member
Joined
Apr 9, 2010
Messages
15
Location
San Jose
Programming Experience
3-5
Will the commands I send to a Process.Start() be obeyed from within the IDE?

For example..

VB.NET:
Dim cwin As New ProcessStartInfo
        Dim p As New System.Diagnostics.Process
        With cwin
            .FileName = Environment.SystemDirectory & "\cmd.exe"
            .Arguments = "/K ffmpeg -i " & Me.inputFile & " -b 300k -vcodec mpeg4 -acodec copy " & Me.outFile
        End With
        'p = Process.Start(cwin)
        Debug.WriteLine(cwin.Arguments.ToString)

This doesn't work in the IDE, just gives me a blank window with the full string as the window name, but I'd like to fire up ffmpeg from within the app, wondering if it's an IDE thing or my code. I know some things in Flash work differently in the IDE than the "real" thing, not sure if VS does it too.
 
I'm dumb. I'm thinking completely wrong.

The .FileName should be C:\ffmpeg\ffmpeg.exe with the appropriate arguments... I was trying to run a env path from the cmd.
 
Back
Top