HydrogenAudio

Hosted Forums => foobar2000 => Support - (fb2k) => Topic started by: 2E7AH on 2010-03-31 09:21:31

Title: passing commandline parameter to foobar process?
Post by: 2E7AH on 2010-03-31 09:21:31
I tried out of curiosity:

(http://docs.python.org/library/os.html#process-management)
Code: [Select]
os.execv(foo, args)
[/url]
where "foo" is foobar path and "args" are /tag:<command> <file> which works fine from command line

then foobar throws this:
Quote
unknown commandline parameter: -

and enqueues <file> as set in "shell integration"

running process monitor shows that new foobar process ID is created with path string to foobar path and this command line string for all operations:
Quote
/tag:comment="Some comment" "some file"

I guess that this is completely wrong way but that "unknown parameter" is saying something and I would like to know if it's there some way to tag multiple files without launching command line all the time?
Title: passing commandline parameter to foobar process?
Post by: 2E7AH on 2010-03-31 10:46:40
i found way out with subprocess.call()
missusage maybe doesn't need explanation
SimplePortal 1.0.0 RC1 © 2008-2021