Tip on how to Run/Debug VBScript code from Textpad

Usage tips, posted by users. No questions here please.

Moderators: AmigoJack, helios, bbadmin, Bob Hansen, MudGuard

Post Reply
helios
Posts: 716
Joined: Sun Mar 02, 2003 5:52 pm
Location: Helios Software Solutions
Contact:

Tip on how to Run/Debug VBScript code from Textpad

Post by helios »

From the TextPad Menubar, choose: Configure / Preferences / Tools

Click “Add�, DOS Program

Enter “Run (CScript)� for the name

Click “Apply�



In the tree pane on the left, expand the Tools branch

Double click the “Run (CScsript)� entry you just created

Parameters = cscript $File

Initial folder = $FileDir



When using CScript, output from Msgbox and Wscript.Echo will be sent to the TextPad Command Results window.

To use WScript instead, use “WScript $File� as the parameter. Output will be shown a line at a time in Windows dialog boxes.

To debug, follow the same procedure, but append “//X� to the parameter. This will launch the script into the debugger (e.g. Microsoft Script Debugger)


Contributed by David Brown.
Alex K. Angelopoulos
Posts: 7
Joined: Sun Feb 01, 2004 3:44 pm

Re: Tip on how to Run/Debug VBScript code from Textpad

Post by Alex K. Angelopoulos »

Minor erratum. The following is NOT true about MsgBox; MsgBox always calls an actual messagebox for display.
helios wrote: When using CScript, output from Msgbox and Wscript.Echo will be sent to the TextPad Command Results window.

Contributed by David Brown.
Post Reply