file:// command-line arguments

Posted by Cory Grimster on Super User See other posts from Super User or by Cory Grimster
Published on 2011-02-28T21:30:28Z Indexed on 2011/02/28 23:27 UTC
Read the original article Hit count: 196

Filed under:

Is it possible to pass command-line arguments to a program that is invoked via a file:// url?

I'm trying to include Remote Desktop links in a wiki page that lists some servers:

<a href="file:///c|/windows/system32/mstsc.exe /v:serverName">serverName</a>

When I omit the argument the link works fine, but when I include it the link doesn't work. I Googled around a bit and couldn't find any references to this. I suspect that the answer is that file:// urls simple don't accept arguments (I can think of all kinds of ways to abuse them if they do), but I thought I'd throw it out there in case I've simply got the syntax wrong.

Thanks.

© Super User or respective owner

Related posts about remote-desktop