|I'm trying to make my batch file open specific websites in new browser windows. I'm doing this on a work computer where I cannot change the settings to open new links automatically in new windows (plus some users wouldn't want /everything/ in new windows, anyhow). |
The below works when there are no ampersands, of course.
start /max "" "%ProgramFiles(x86)%\Internet Explorer\iexplore.exe" http://www.google.com
I know I could put a caret ^ in front of the ampersands to make it work, however some of the codes I have would input a user's password, which could potentially have an ampersand in it. I have Excel creating the batch file and I believe it would take much more code to put carets in front of possible ampersands than it would to figure out how to make the above code work.
The ampersand links work fine when they are in quotation marks, such as when they do not open in new windows, but I can't figure out a way to include the pathing for IE and the URL.