Page 1 of 1

Getting started. Help using vbscript for a simple task.

Posted: 2021-Nov-10, 11:28 pm
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.

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

Posted: 2021-Nov-11, 12:17 am
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

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

Posted: 2021-Nov-11, 1:25 am
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

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

Posted: 2021-Nov-11, 1:32 am
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.

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

Posted: 2021-Nov-11, 9:02 am
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.

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

Posted: 2021-Nov-12, 1:38 pm
by SweetTasha
Simon, thanks for your help.
SweetTasha.