Open a website in Internet Explorer from command line

Solution 1:

Open with Internet Explorer

The following command will open a new Internet Explorer window (the 32-bit or 64-bit version depending on the system, assuming it's installed), and load the page:

"%ProgramFiles%\Internet Explorer\iexplore.exe" "http://onlinesms.in/api/sendValidSMSdataUrl.php?login=demodlc&pword=YourPassword&msg=msg&senderid=OPTINS&mobnum=mobnum"

Open with the default browser

If you just want to load the default browser (which might not be Internet Explorer), you can use the following instead:

start "link" "http://onlinesms.in/api/sendValidSMSdataUrl.php?login=demodlc&pword=YourPassword&msg=msg&senderid=OPTINS&mobnum=mobnum"

Quotes are required to avoid parsing errors due to reserved characters, which would need to be escaped separately otherwise.

The advantage is that the if the default browser is open already, the page should be loaded in a new tab, rather then a new window.