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)
I've been writting VBS/ HTA's for a while but never messed with ASP. Can I convert a HTA to ASP?
|
|
|
|
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)
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.
|
|
|
|
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)
how do you specify client or server script? anyone have any good sites or reference material?
|
|
|
|
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)
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>
|
|
|
|
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)
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>
|
|
|
|
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)
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?
|
|
|
|
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)
|
|
|
|