Hi y'all,
Actually, Juan's example didn't work for me but with a slight modification
it did work.
parm HtmName="c:\temp\default.html"
option nolist
setvar esc,chr(27)
setvar AppName "C:\Program Files\Plus!\Microsoft Internet\Iexplore.exe"
setvar AppHtmName "!AppName !HtmName"
echo !ESC&oG
echo sub main
echo shell "!AppHtmName"
echo end sub
echo !ESC&oH
The redirection was not really needed and in this case if your application
is in the $PATH then there is no need to fully qualify the application.
HTH,
Chip Dorman
Kennametal, Inc
Juan Rojas wrote:
> Mike,
> You can create a script such:
>
> parm AppName="c:\winnt\notepad",FName="c:\TEMP\showlist.txt"
> option nolist
> setvar esc,chr(27)
> echo !ESC&oG > vbacmd
> echo sub main >> vbacmd
> echo application.shell "!AppName","!FName" >> vbacmd
> echo end sub >> vbacmd
> echo !ESC&oH >> vbacmd
> print vbacmd
>
> If you want to open the Notepad application and you can run the script like:
>
> script "c:\Program files\Internet Explorer\iexplore.exe","http://any page.com"
>
> If you want to open IE with the given page.
>
> Juan Rojas
>
> >>> Mike Bigley <[log in to unmask]> 7/26/01 9:12:25 AM >>>
> I would like to know if anyone has been successful with a Reflections
> script that will start up Internet Explorer and pass it the name of a web
> page to open. Thanks.
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|