convert hta to asp

Author Message
robszar

  • Total Posts : 193
  • Scores: 0
  • Reward points : 0
  • Joined: 2/27/2005
  • Location:
  • Status: offline
convert hta to asp Friday, September 21, 2007 8:16 AM (permalink)
0
            I've been writting VBS/ HTA's for a while but never messed with ASP.   Can I convert a HTA to ASP?
 
#1
    dm_4ever

    • Total Posts : 3687
    • Scores: 82
    • Reward points : 0
    • Joined: 6/29/2006
    • Location: Orange County, California
    • Status: offline
    RE: convert hta to asp Friday, September 21, 2007 3:14 PM (permalink)
    0
    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
     
    #2
      robszar

      • Total Posts : 193
      • Scores: 0
      • Reward points : 0
      • Joined: 2/27/2005
      • Location:
      • Status: offline
      RE: convert hta to asp Monday, September 24, 2007 1:15 AM (permalink)
      0
      how do you specify client or server script?   anyone have any good sites or reference material?
       
      #3
        dm_4ever

        • Total Posts : 3687
        • Scores: 82
        • Reward points : 0
        • Joined: 6/29/2006
        • Location: Orange County, California
        • Status: offline
        RE: convert hta to asp Monday, September 24, 2007 2:09 AM (permalink)
        0
        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
         
        #4
          robszar

          • Total Posts : 193
          • Scores: 0
          • Reward points : 0
          • Joined: 2/27/2005
          • Location:
          • Status: offline
          RE: convert hta to asp Monday, September 24, 2007 2:48 AM (permalink)
          0
          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 on Monday, September 24, 2007 5:37 AM>
           
          #5
            robszar

            • Total Posts : 193
            • Scores: 0
            • Reward points : 0
            • Joined: 2/27/2005
            • Location:
            • Status: offline
            RE: convert hta to asp Monday, September 24, 2007 8:32 AM (permalink)
            0
            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?
             
            #6
              webber123456

              • Total Posts : 58
              • Scores: 0
              • Reward points : 0
              • Joined: 9/20/2007
              • Status: offline
              RE: convert hta to asp Tuesday, October 09, 2007 4:36 AM (permalink)
               
              #7

                Online Bookmarks Sharing: Share/Bookmark

                Jump to:

                Current active users

                There are 0 members and 1 guests.

                Icon Legend and Permission

                • 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
                • Read Message
                • Post New Thread
                • Reply to message
                • Post New Poll
                • Submit Vote
                • Post reward post
                • Delete my own posts
                • Delete my own threads
                • Rate post

                2000-2012 ASPPlayground.NET Forum Version 3.9