Getting started. Help using vbscript for a simple task.

Microsoft Windows
Post Reply
SweetTasha
Posts: 5
Joined: 2021-Sep-11, 4:24 am

Getting started. Help using vbscript for a simple task.

Post by SweetTasha »

I need to write a script to issue some prompts, get the answers, then run an .exe file. I'm the only user on the system, but I'd like to put the execution into the scheduler so it can be run on a recurring basis. Why not just set up a reminder in my calendar? That's no fun :) But seriously, I;m hoping to do some more elaborate tasks eventually, and I figure vbscript would be a good way to get my feet wet. I've done a lot programming before my retirement--VBA, C,C++, perl, BAL (you youngsters may not know what that is), but this will be a good starter and one that I will actually use.

So, are there manuals online that discuss topics like how to execute the compiler, syntax, executing the code?

TIA for your help.
SweetTasha.
User avatar
Simon Sheppard
Posts: 50
Joined: 2021-Jul-10, 7:46 pm
Contact:

Re: Getting started. Help using vbscript for a simple task.

Post by Simon Sheppard »

Hi SweetTasha

VBScript does not need to be compiled, just write the script in a text editor, save it and run it, see this page:
https://ss64.com/vb/syntax-run.html

The other How-To pages should get you started.
https://ss64.com/vb/syntax.html
SweetTasha
Posts: 5
Joined: 2021-Sep-11, 4:24 am

Re: Getting started. Help using vbscript for a simple task.

Post by SweetTasha »

I did a little research and it seems to me that the script needs to run under HTML. If that is correct, won't I need a website to host the HTML? I'm probably misunderstanding how the pieces of this environment fit together. I run some VBA code under Excel. It can't run with an Excel program to host it, right?

Thanks for your reply.
SweetTasha
SweetTasha
Posts: 5
Joined: 2021-Sep-11, 4:24 am

Re: Getting started. Help using vbscript for a simple task.

Post by SweetTasha »

I followed the how-to links from your reply. WOW. There's a bushel of stuff. I can see I'll be burning the midnight oil tonight.

Again, thanks.
SweetTasha.
User avatar
Simon Sheppard
Posts: 50
Joined: 2021-Jul-10, 7:46 pm
Contact:

Re: Getting started. Help using vbscript for a simple task.

Post by Simon Sheppard »

SweetTasha wrote: 2021-Nov-11, 1:25 am I did a little research and it seems to me that the script needs to run under HTML. If that is correct, won't I need a website to host the HTML?
Years ago people used VBScript embedded within web pages, but no-one does that any more, on the web it has been replaced with JavaScript.
It is still being used for Windows admin tasks although PowerShell is gradually taking over for many things there.
SweetTasha
Posts: 5
Joined: 2021-Sep-11, 4:24 am

Re: Getting started. Help using vbscript for a simple task.

Post by SweetTasha »

Simon, thanks for your help.
SweetTasha.
Post Reply