Skip to content

The package to accelerate development on WSH (Windows Script Host). Works in a pure Windows environment.

License

Notifications You must be signed in to change notification settings

tuckn/WshBasicPackage

Repository files navigation

WshBasicPackage

The package to accelerate development on WSH (Windows Script Host). Works in a pure Windows environment.

Presentation PDF

Operating environment

Works on JScript in Windows.

Installation

(1) Create a directory of your WSH project.

D:\> mkdir MyWshProject
D:\> cd MyWshProject

(2) Download this ZIP and unzip or Use the following git command.

> git clone https://github.com/tuckn/WshBasicPackage.git ./WshModules/WshBasicPackage
or
> git submodule add https://github.com/tuckn/WshBasicPackage.git ./WshModules/WshBasicPackage

(3) Create your JScript (.js) file. For Example,

D:\MyWshProject\
├─ MyScript.js <- Your JScript code will be written in this.
└─ WshModules\
    └─ WshBasicPackage\
        └─ dist\
          └─ bundle.js

I recommend JScript (.js) file encoding to be UTF-8 [BOM, CRLF].

(4) Create your WSF packaging scripts file (.wsf).

D:\MyWshProject\
├─ Run.wsf <- WSH entry file
├─ MyScript.js
└─ WshModules\
    └─ WshBasicPackage\
        └─ dist\
          └─ bundle.js

And you should include .../dist/bundle.js into the WSF file. For Example, The content of the above Run.wsf is

<package>
  <job id = "run">
    <script language="JScript" src="./WshModules/WshBasicPackage/dist/bundle.js"></script>
    <script language="JScript" src="./MyScript.js"></script>
  </job>
</package>

I recommend this WSH file (.wsf) encoding to be UTF-8 [BOM, CRLF].

Awesome! This WSH configuration allows you to use the following functions in JScript (.\MyScript.js).

Usage

Now, your JScript can use many helper functions that are defined in the following modules.

Core Modules

Basic Apps

Documentation

See all specifications here and also below.

License

MIT

Copyright (c) 2020 Tuckn

About

The package to accelerate development on WSH (Windows Script Host). Works in a pure Windows environment.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published