"Michael Harris (MVP)" <mikhar at mvps dot org> wrote in message
news:%...
> David Tilman wrote:
> > I was wondering how I could use the "Run As..." function with HTML
> > applications like I do with executables in Windows XP. When
> > right-clicking on the HTA file there is no "Run As..." option.
> >
> > For vbs files I just created a shortcut to the vbs file and the "Run
> > As..." option will appear for the shortcut. Creating a shortcut
> > directly to the hta file doesn't allow this. When I edited the
> > shortcut target properties to: "C:\Program Files\Internet
> > Explorer\IEXPLORE.EXE" "H:\Scripts\Test Scripts\test.hta" I can
> > double click the shortcut to run the HTML application, but choosing
> > "Run As..." from the context menu gives me a "The directory name is
> > invalid" error. Is there another approach to this?
>
>
> Make the shortcut execute mshta.exe with the full qouted path to the *.hta
> as the argument...
Also, make sure that the alternate credentials you are using have full
access to the hta file.
Coincidentally, I have just finished an HTA that is started by a batch file
with runas. The HTA is then used to launch administrative tools without
having to user runas.
One thing that threw me was when I tried to do my testing with the
application in a share rather than on a local drive. Even though the
alternate account had full administrative access to the share, it somehow
bombed out.
/Al
|