General Discussions

mastallama – bennythebear

bennythebear

Member

Posts: 1225
From: kentucky,usa
Registered: 12-13-2003
you said if we had any questions about actionscript, javascript, asp, html, or vbscript to ask you...so ...do you know anything about wsh and using vbscript inside of it? i've got a book on using vbscript with wsh, but i need more of an understanding of wsh, and it's (i guess???) native script. any tutorials, or anything will help. also, any good tutorials on anything you said you could help with would be of interest to me. btw, i dabble in just about anything and manage to master nothing. i'm working on getting into the networking field, so i'm pretty sure knowledge of scripting will come in handy and look good on a resume, plus i really, really, enjoy scripting...anything from game modding(novice level) to html. so anywho...any help, advice, or if you just feel like blurting off some of your knowledge, it's all useful/interesting to me.

------------------
proverbs 17:28
Even a fool, when he holdeth his peace, is counted wise: and he that shutteth his lips is esteemed a man of understanding.

proverbs 25:7
open rebuke is better than secret love.

www.gfa.org - Gospel for Asia

www.persecution.com - Voice of the Martyrs

cwc

Member

Posts: 121
From: USA
Registered: 07-30-2005
Hello, I just have to ask why would anyone want to use vbscript instead of Javascript, Does all browser support vbscript? I mean even msn uses javascript....so that should tell ya something. I am not a vbscript person but does firefox/Mozilla, Opera, and netscape support it??? Just wondering before I start to look at it, cause I have been thinking about playing around with some vbscript.

[This message has been edited by cwc (edited August 11, 2005).]

bennythebear

Member

Posts: 1225
From: kentucky,usa
Registered: 12-13-2003
i'm pretty sure internet explorer is the only thing that supports vbscript. the reason i'm interested in it, is for use with wsh(windows scripting host) and maybe someday some server side scripting.

------------------
proverbs 17:28
Even a fool, when he holdeth his peace, is counted wise: and he that shutteth his lips is esteemed a man of understanding.

proverbs 25:7
open rebuke is better than secret love.

www.gfa.org - Gospel for Asia

www.persecution.com - Voice of the Martyrs

nfektious
Member

Posts: 408
From:
Registered: 10-25-2002
uhh...vbscript is commonly used in asp web pages. firefox does work with vbscript driven asp sites. remember that there are usually some server side functions for each individual web page...it isn't all handled automatically by the browser. point being that some features do depend on the host server configuration.
MastaLlama

Member

Posts: 671
From: Houston, TX USA
Registered: 08-10-2005
yes, ASP uses a slightly modified version of VBScript, but using VBScript with WSH is just a little different.

What exactly are you looking to do with the WSH? Essentially, you can take any ASP tutorials (www.ASP101.com) and modify it just a little bit and use it a .vbs file in WSH. Of course, this does not work for ASP.NET stuff though.

cwc - yes, Microsoft has the only browser that supports VBScript as a client-side scripting language like JavaScript, but it is just a tad bit more powerful. Other than that, ASP (using the slightly modified version of VBScript) is widely used and VBScript is used in many programs used with WSH. I wrote a web-based game one time called "Time Of War" where every 30 minutes all the players were given 2 more soldiers and $1,000. I wrote the program to update the database in VBScript and set it up as a scheduled task on the server. It worked very nicely!

Another VERY VERY powerful functionality of VBScript, is the ability to write DLL files and then register them on the server and use them in web-applications. For example, I'm currently finishing up a project for a private school in the area. The majority of the code is in a DLL file and the pieces all get called via a CreateObject function. Not only does it allow me to be sure the code isn't edited (can't decompile the DLL) it also allows me to be able to update code with a single file upload.

Security and ease of use, all in one!

I don't know if this answered any of your questions, so post back and let me know!

MastaLlama

------------------

http://www.jeremysouthard.org

nfektious
Member

Posts: 408
From:
Registered: 10-25-2002
anything that you use that targets windows specific functionality is going to require you to use IE as the default browser. alternate browsers can be installed (assuming the user has administrative rights to do so, etc.), but the specific functionality will likely be lost with a non-IE browser. that is just the way microsoft has done things.
there are exceptions, of course, but the workaround to get the functionality is usually much more involved than choosing to go with the default windows/IE interoperability scheme that microsoft has built in to their products. add in the issue of future updates and patches the way microsoft does things, and you are likely going to be rebuilding non-IE objects on a consistent basis.
of course, there is still room for argument as to whether a microsoft suggested method for a particular solution on any given day will still work 6 months later. some people call this job security; others call this an annoyance.
MastaLlama

Member

Posts: 671
From: Houston, TX USA
Registered: 08-10-2005
quote:
of course, there is still room for argument as to whether a microsoft suggested method for a particular solution on any given day will still work 6 months later.

i hear that! micro$oft likes to decide a certain function or element is not really needed anymore, after a service pack propogates suddenly something in your program doesn't work. i just don't like using VBScript client-side. works wonders server-side though (ASP and WSH)

------------------

http://www.jeremysouthard.org

cwc

Member

Posts: 121
From: USA
Registered: 07-30-2005
quote:
Originally posted by MastaLlama:

Another VERY VERY powerful functionality of VBScript, is the ability to write DLL files and then register them on the server and use them in web-applications. For example, I'm currently finishing up a project for a private school in the area. The majority of the code is in a DLL file and the pieces all get called via a CreateObject function. Not only does it allow me to be sure the code isn't edited (can't decompile the DLL) it also allows me to be able to update code with a single file upload.

Security and ease of use, all in one!

I don't know if this answered any of your questions, so post back and let me know!

MastaLlama


Yes this has answered my questions and I find the quote up top to be very interesting....Thanks MastaLlama.

God Bless You All.

[This message has been edited by cwc (edited August 12, 2005).]