去网上找一个scriptrr有例子的
=============
Script Runner
=============
Version : 1.00
Release Date : 24 Nov 1998
Author : Sing Wong
Copyright (C) 1998
E-mail : wongsing@netvigator.com
(Comments or sugguestions are always welcome)
===========
Description
===========
Demo program writen in Delphi 4.0, shows how to using Microsoft Script
Control v1.0 in Delphi, through Object Linking and Embedding (OLE)
interface. Is able to interpret VB or Java Script. And can be a utility
applet as well, just likes what Windows Scripting Host does in Windows
98.
Should be OK to run on Delphi 2.x / 3.x, but I have not tried before.
=====
Usage
=====
You have to install Microsoft Script Control v1.0, before you can run
this program, after that, a file called MSScript.ocx would be found on
your machine, at system path of Windows, or anywhere, as the case may
be. If you do not have it, you may down load it from web page :
http://www.Microsoft.com/Scripting/ScriptControl/Default.htm
==============
Known Problems
==============
-Two or more subroutine with same name call be added to script engine
at the same.
-More than one arguments in subroutine, which acts as a start up one,
is not handled in this version, even it's possible.
========
Contents
========
Readme.txt - This file
ScriptRunner.* - Project file of Script Runner
FormMain.* - Main form / unit in project
FormStartUp.* - Start up form, part of Script Runner
SRDemo.txt - Sample script file writen in VB Script
======
Charge
======
Totally free of charge, including source code.
==========
DISCLAIMER
==========
THIS SOFTWARE AND THE ACCOMPANYING FILES ARE PROVIDED "AS IS" WITHOUT
WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS
FOR A PARTICULAR PURPOSE.
Best regards!
Sing Wong
(* Sorry for my bad English! *)