Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


convert hta to asp

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,52114
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> convert hta to asp
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 convert hta to asp - 9/21/2007 7:16:52 AM   
  robszar


Posts: 176
Score: 0
Joined: 2/27/2005
From:
Status: offline
            I've been writting VBS/ HTA's for a while but never messed with ASP.   Can I convert a HTA to ASP?
 
 
Post #: 1
 
 RE: convert hta to asp - 9/21/2007 2:14:10 PM   
  dm_4ever


Posts: 2313
Score: 34
Joined: 6/29/2006
From: Orange County, California
Status: offline
You should be able to convert it depending on what the HTA is doing.  Things to consider is that asp is running on IIS and then you have server side scripts and client side scripts.  The client side scripts become much more limited due to the security settings of IE.

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to robszar)
 
 
Post #: 2
 
 RE: convert hta to asp - 9/24/2007 12:15:20 AM   
  robszar


Posts: 176
Score: 0
Joined: 2/27/2005
From:
Status: offline
how do you specify client or server script?   anyone have any good sites or reference material?

(in reply to robszar)
 
 
Post #: 3
 
 RE: convert hta to asp - 9/24/2007 1:09:36 AM   
  dm_4ever


Posts: 2313
Score: 34
Joined: 6/29/2006
From: Orange County, California
Status: offline
One site you can look at is:  http://www.w3schools.com/

Server side scripting is normally placed in tags like this <% ...code... %> while you client side would be <script language="vbscript"> ...code... </script>

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to robszar)
 
 
Post #: 4
 
 RE: convert hta to asp - 9/24/2007 1:48:27 AM   
  robszar


Posts: 176
Score: 0
Joined: 2/27/2005
From:
Status: offline
cool.  ok, got another question.  I get an error trying to create the shell and WMI objects below:

Set objWSHShell = CreateObject("WScript.Shell")
Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")

is this a security restriction?  if so can I bypass it?

here are the errors:
active x component can't create object 'WScript.Shell'
active x component can't create object 'GetObject' 

< Message edited by robszar -- 9/24/2007 4:37:36 AM >

(in reply to dm_4ever)
 
 
Post #: 5
 
 RE: convert hta to asp - 9/24/2007 7:32:05 AM   
  robszar


Posts: 176
Score: 0
Joined: 2/27/2005
From:
Status: offline
ok, I lowered the security settings in IE for the WSH.Shell
but WMI doens't seem to work.  It appears as I can't use "getObject"  I can use "CreateObject" though
is there a way to connect to WMI other than this?  Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")  that works?

(in reply to robszar)
 
 
Post #: 6
 
 RE: convert hta to asp - 10/9/2007 3:36:10 AM   
  webber123456

 

Posts: 37
Score: 0
Joined: 9/20/2007
Status: offline
http://msdn2.microsoft.com/en-us/library/Aa389395.aspx

(in reply to robszar)
 
 
Post #: 7
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> convert hta to asp Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts