Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

START /PGM "name with spaces.URL" fails

May
12,834
163
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

Back
Top