This might work: pd -stderr -listdev -nogui -send "pd quit"
(This puts the info out on the standard error, not standard out; I'm not sure whether you can redirect standard error in windows.) cheers Miller On Fri, Jul 15, 2016 at 09:48:29PM +0200, oliver wrote: > hi, dear list ! > > i tried to use the -listdev option of pd.exe to get a list of available > audio and midi devices, and to write the output into a textfile for later > "grep" usage. > > here's what i wrote on the command line (w32): > > pd.exe -batch -listdev > D:\Temp\devices.txt > > the problem i encountered is, that PD always gets started, and the output of > "-listdev" is written into PD's console window but not into the textfile i > declared. "D:\Temp\devices.txt" exists, but is empty, and an instance of PD > was started. > > do you know a way to just get this specific information without actually > starting PD ? > > P.S.: i know about the "mediasettings" external, but i really would like to > do this on the command line, WITHOUT actually starting PD. > > thanks > > oliver > > > _______________________________________________ > [email protected] mailing list > UNSUBSCRIBE and account-management -> > https://lists.puredata.info/listinfo/pd-list _______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
