Sorry for sounding like i want the work done for me, I just need to know how to go about doing this. My program uses ffmpeg and this is how you get the names i need using it. From a standard cmd prompt i can run this ffmpeg command :
- ffmpeg -list_devices true -f dshow -i dummy >info.txt 2>>&1
-
and it writes the output to a text file just fine but, if i run it from a Shell command or by using a Process in vb it runs the command but it fails to write the info to a text file. I have tried several ways using :
- Shell("ffmpeg -list_devices true -f dshow -i dummy >info.txt 2>>&1")
-
All other ffmpeg commands work fine that i send from my program except this one. I even tried having my program run a batch file that works from a cmd prompt but, run from vb cmd shell it fails to make the text file also. Is there some reason that the cmd shell in vb won`t work?
I was told maybe using WMI might work to get the names of devices but, i can`t find a good example anywhere of how to use WMI and don`t quite understand it yet.
Do you know why Shell command dosn`t let ffmpeg write the text file or can you direct me to a good WMI example ?
PS. I am running XP Pro SP3 as the administrator.