Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: passing commandline parameter to foobar process? (Read 1001 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

passing commandline parameter to foobar process?

I tried out of curiosity:

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?

passing commandline parameter to foobar process?

Reply #1
i found way out with subprocess.call()
missusage maybe doesn't need explanation

 
SimplePortal 1.0.0 RC1 © 2008-2021