I should know this by now, but. . .
I want to include in a batch script the command necessary to open Notepad or IE (or default browser) full screen (/max).
1. This works - Notepad & my test file - just fine:
2. This brings up a MAX CMD screen (no Notepad):
3. This just brings up Notepad with the specified file (text1.txt), but of course does not maximize Notepad:
4: This brings up a new regular (size-wise) CMD screen: (NO Notepad):
Why doesn't #4 bring up Notepad opened with the specified file? I've used similar code in various posts and believe (or thought...) that the file ext would/should cause Notepad to open...?
Same questions re: Internet Explorer (or user's default browser).
I want to open the user's default web browser with the specified HTML file, but can't get it to work correctly.
5. This works - brings up a maximized IE screen containing the specified file:
6. This simply brings up a MAXimized CMD screen - no IE or other browser:
How can I code my batch script to open the HTML file using the user's default web browser app?
Thanks,
John
I want to include in a batch script the command necessary to open Notepad or IE (or default browser) full screen (/max).
1. This works - Notepad & my test file - just fine:
Code:
start /max notepad "%userprofile%\documents\test1.txt"
2. This brings up a MAX CMD screen (no Notepad):
Code:
start /max "%userprofile%\documents\test1.txt"
3. This just brings up Notepad with the specified file (text1.txt), but of course does not maximize Notepad:
Code:
start notepad "%userprofile%\documents\test1.txt"
4: This brings up a new regular (size-wise) CMD screen: (NO Notepad):
Code:
start "%userprofile%\documents\test1.txt"
Why doesn't #4 bring up Notepad opened with the specified file? I've used similar code in various posts and believe (or thought...) that the file ext would/should cause Notepad to open...?
Same questions re: Internet Explorer (or user's default browser).
I want to open the user's default web browser with the specified HTML file, but can't get it to work correctly.
5. This works - brings up a maximized IE screen containing the specified file:
Code:
start /max "%programfiles%\internet explorer\iexplore" "%userprofile%\documents\test1.html"
6. This simply brings up a MAXimized CMD screen - no IE or other browser:
Code:
start /max "%userprofile%\documents\test1.html"
How can I code my batch script to open the HTML file using the user's default web browser app?
Thanks,
John