DeveloperBarn Forums

DeveloperBarn

Programming & IT forum

Suppressing Run or Save message

This is a discussion on Suppressing Run or Save message within the Windows Scripting forums, part of the Programming & Scripting category; Hi - I've written an hta script (using vbscript) to detect if a user is accessing a website directly from ...

Go Back   DeveloperBarn Forums > Programming & Scripting > Windows Scripting

  #1  
Old October 31st, 2008, 01:01 PM
Barn Newbie

 
Join Date: Oct 2008
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 1
mellomel70 is an unknown quantity at this point
Default Suppressing Run or Save message

Hi - I've written an hta script (using vbscript) to detect if a user is accessing a website directly from their PC or via a remote connection. This HTA file is set as the startup page in an ASP.net (1.1) application. Its intention is to keep remote users from accessing the website. It works beautifully, except that everytime I go to the site it displays the ol' "Do you want to run or save this file?" message. If I click "Run", the hta runs fine and then I'm taken to the website (if I'm not connecting remotely). However, I want to suppress this "Run or Save" message. I've tried all sorts of setting changes in IE, but no joy. IE7 is the version we use, but the behavior is the same with 6. Does anyone know how to suppress this?

Thanks!
Reply With Quote
  #2  
Old October 31st, 2008, 01:11 PM
jmurrayhead's Avatar
The Barnfather


 
Join Date: Mar 2008
Location: Washington, D.C.
Posts: 1,566
Thanks: 39
Thanked 166 Times in 157 Posts
Blog Entries: 7
Rep Power: 10
jmurrayhead is a splendid one to beholdjmurrayhead is a splendid one to beholdjmurrayhead is a splendid one to beholdjmurrayhead is a splendid one to beholdjmurrayhead is a splendid one to beholdjmurrayhead is a splendid one to beholdjmurrayhead is a splendid one to behold
Default

Welcome to DeveloperBarn!

Take a look at this link here: Introduction to HTML Applications (HTAs)

Pay close attention to the sections:

The Power of Trust: HTAs and Security
The Web Model

Comments on this post
mellomel70 agrees: Thanked Post
__________________
jmurrayhead
If you agree with me... click the icon!
If my post solved your problem, click the button in the lower right-hand corner of the post.

If you like it here...throw us a few bones to help
support us.

Join our Folding team: DeveloperBarn Folding

Reply With Quote
The Following User Says Thank You to jmurrayhead For This Useful Post:
mellomel70 (November 3rd, 2008)
  #3  
Old November 3rd, 2008, 03:12 PM
Barn Newbie

 
Join Date: Oct 2008
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 1
mellomel70 is an unknown quantity at this point
Default Thank you!

Yup, that link had the information I needed. I'm now running my hta independently from the ASP.Net app, instead of invoking it from inside the app, and it works wonderfully.

Thank you!!
Reply With Quote
  #4  
Old November 3rd, 2008, 03:28 PM
jmurrayhead's Avatar
The Barnfather


 
Join Date: Mar 2008
Location: Washington, D.C.
Posts: 1,566
Thanks: 39
Thanked 166 Times in 157 Posts
Blog Entries: 7
Rep Power: 10
jmurrayhead is a splendid one to beholdjmurrayhead is a splendid one to beholdjmurrayhead is a splendid one to beholdjmurrayhead is a splendid one to beholdjmurrayhead is a splendid one to beholdjmurrayhead is a splendid one to beholdjmurrayhead is a splendid one to behold
Default

Quote:
Originally Posted by mellomel70 View Post
Yup, that link had the information I needed. I'm now running my hta independently from the ASP.Net app, instead of invoking it from inside the app, and it works wonderfully.

Thank you!!

Glad I could help, cheers!
Reply With Quote
Reply

  DeveloperBarn Forums > Programming & Scripting > Windows Scripting

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
What format should i use to save password? micky MySQL 20 November 4th, 2008 08:56 AM


All times are GMT -4. The time now is 08:27 PM.


Copyright ©2008-2009, DeveloperBarn

Content Relevant URLs by vBSEO 3.3.0