I'm running a Perl script (on win32) that uses a system call to open a browser window and load a new html file. So, the script uses the simple DOS command: [i]C:\"Program Files"\"Internet Explorer"\iexplore.exe C:directory\file.html[/i]
The browser opens fine, but instead of loading C:directory/file.html, the browser tries to open http://files"/"Internet%20Explorer"/iexplore.exe%20C:directory/file.html, which doesn't exist, and I get an error message. Does anyone know what I'm doing wrong?
...... C:\directory\file.html might work better (but maybe that was just a typo).
Assuming that IE is the default browser, there should be no need to specify the browser on the command line in DOS. As with opening a .txt file, if notepad is associated with .txt files, it should open.
Also, the filename must be in quotes if it contains spaces.
Also, since this is IE, the filename spec may need / instead of \ if you are specifying the browser explicitly.
Thanks. Firefox is my default browser, but I'm using IE because the new pages have links that I want to check for page rank. I changed the backslashes to forward slashes as you suggested, and moved the quotes around, and it works now.