START /PGM "name with spaces.URL" fails

May 20, 2008
12,342
134
Syracuse, NY, USA
This works fine ... opening Firefox (or a new tab) and displaying the url.
Code:
v:\> start /pgm "C:\Users\vefatica\Favorites\Crossword\AnswerBank.URL"
But this one, or any .URL file with a space in its name, fails.
Code:
start /pgm "C:\Users\vefatica\Favorites\JPSoft Forums.url"
It gives a couple of message boxes (invalid target "", and unable to open internet shortcut).

That quoted file name works OK in the Start/Run dialog, with my SHELLEX plugin (dumb wrapper for ShellExecuteEx), and in CMD with this syntax (which also doesn't work in TCC).
Code:
start "" "C:\Users\vefatica\Favorites\JPSoft Forums.url"
 
(Shooting in the dark) If you are using ShellExecute(Ex), the action should be null, not empty string, to invoke default action.
 

Similar threads