We’d like to remind Forumites to please avoid political debate on the Forum.
This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
VBScript newbie

esuhl
Posts: 9,409 Forumite


in Techie Stuff
A long time ago I wrote scripts in Visual Basic 6.0 and VBA, but I've never used VBScript. So (although I'm a bit rusty) I get the basics of programming/scripting.
I'm thinking of having a play with VBScript. In particular, I want to write a simple script that displays information that is periodically updated without any user input. It'll just be running on a local PC as a VBS file.
I've read that VBScripts can run via either CScript (for console output) or WScript/WSH (for Windows output). Would I be right in thinking that the only way to have a continuously updating display would be to scroll messages in a console window?
Would I need to use different commands with CScript vs WScript...?
Are there any good tutorials I could have a look at to get myself up to speed?
Cheers!
I'm thinking of having a play with VBScript. In particular, I want to write a simple script that displays information that is periodically updated without any user input. It'll just be running on a local PC as a VBS file.
I've read that VBScripts can run via either CScript (for console output) or WScript/WSH (for Windows output). Would I be right in thinking that the only way to have a continuously updating display would be to scroll messages in a console window?
Would I need to use different commands with CScript vs WScript...?
Are there any good tutorials I could have a look at to get myself up to speed?
Cheers!

0
Comments
-
Basically, if you want your script to have a console window, you need to use cscript as opposed to wscript.
If you use wscript you wont have access to the STDOUT etc commands that output to the console..
So i guess Wscript wouldnt be much use for your intended use.
Why not use javascript if you want visual stuff ??
For your editor i would recommend notepad++ as it highlights commands etc in your code and for tutorials there are many on the web such as http://www.tutorialspoint.com/vbscript/
Hope this helps a bit
Andy0 -
Thanks -- that does help. :-)
If anyone else is reading this and wants to look at VBScript, I also found this page which has some good info and links (after the initial waffle): https://technet.microsoft.com/en-us/scriptcenter/dd940112.aspx0
This discussion has been closed.
Confirm your email address to Create Threads and Reply

Categories
- All Categories
- 351.7K Banking & Borrowing
- 253.4K Reduce Debt & Boost Income
- 454K Spending & Discounts
- 244.7K Work, Benefits & Business
- 600.1K Mortgages, Homes & Bills
- 177.3K Life & Family
- 258.4K Travel & Transport
- 1.5M Hobbies & Leisure
- 16.2K Discuss & Feedback
- 37.6K Read-Only Boards