[DUG] ShellExecute encoding

2009-07-28 Thread John Bird
How can I pass a # character to a command line used by a browser so it arrives as a # in the URL, and not as a %23 eg I am wanting to pass a command line parameters to a browser, ShellExectute(Application.Mainform.Handle,'open',PChar(Browserexname),

Re: [DUG] ShellExecute encoding

2009-07-28 Thread John Bird
I solved this - in case its of interest here's how I did it. The file URL is encoded by the browser if it does not already start with file:/// and have only / characters rather than \ in it. In order to pass a file URL to ShellExecute with a Tag in it, one cannot therefore just execute the