Change the Default Script Host to Cscript
If you are a Windows network administrator I recommend that you set the WSH options to run scripts at the command prompt by default. The default WSH script host is Wscript.exe, which runs scripts in the GUI — this means that all input and output takes place in popup message boxes, which require user intervention to click OK before the script can continue with its work.
Cscript.exe, the command-line script host, is usually more suitable for system administration tasks, which often need to report a lot of information (and thus could result in you having to click a lot of message boxes). To make Cscript.exe the default script host, open a command window and, at the prompt, type:
cscript //h:cscript //nologo //s
This command-line:
- sets Cscript, the console-based script host, as your default
- suppresses the logo that appears by default, and
- saves these options for the current user.
If you do not run this command-line, you must type “cscript” before the filename of a script to run it in a command window, for example:
cscript anyoldscript.vbs
For a full list of WSH options that can be set at the command prompt, type:
cscript /?
This needs to be a VBScript that executes using the cscript.exe(what is it mean and why it is needed here?). It needs to process credit cards on their anniversary date. For example, someone who signed up for a service on January 3rd for $10 per month would need to be charged on the 3rd of every month for the same amount. If someone signed up for annual service, they On months that have 30 days, it needs to charge for services billed on the 31st and February needs to charge for services billed on the 29th through the 31st.