| View previous topic :: View next topic |
| Author |
Message |
gwardell Newbie
Joined: 03 Apr 2004 Posts: 10
|
Posted: Sun Apr 11, 2004 8:50 pm Post subject: Run a script that isn't compiled? |
|
|
Hi,
What I want to do is to programmatically generate a script on the fly, push it to a remote machine on my LAN, and then have a scheduled task run it.
I know how to setup the scheduled task. But I don't know if VDS can run a text script in the background like that.
Gary |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sun Apr 11, 2004 9:04 pm Post subject: |
|
|
If you want to run a script generated on the fly you could either control
the VDS IDE via DDE to compile it, then execute the resulting EXE, or
try something else, such as using an interpreter for VDS. You can try
this one, but it won't work for scripts above VDS 3 I think. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Sun Apr 11, 2004 9:27 pm Post subject: |
|
|
I found this in VDS 5 HELP: (it includes a compile command)
| Quote: | The VDS 5 IDE can be automated to a limited extent using DDE commands. The controlling application should open a DDE link with server "VDS", topic "System":
DDE LINK, VDS, System
Macro commands may then be executed using the DDE EXECUTE command. Macro commands must be enclosed in square brackets. If an argument is specified, it follows the command enclosed in round brackets. Quotes may be used to preserve spaces.
Macro commands return information via the DDE Item "DDEResult", which can be obtained using the @DDEITEM function:
%%result = @DDEITEM(DDEResult)
Commands return "**OK**" when they are completed, or "**ERR**" if there is an error, unless other return information is specified.
There follows a brief description of the DDE macros available in the current build of VDS. Where <filename> is specified, a full path is required in all cases.
[FILENEW]
Opens a new, blank file in the editor.
[FILEOPEN(<filename>)]
Opens a file in the editor. If the file is a project file, the previous project (if present) is closed, and all the files of the new project are opened.
[FILESAVE(<filename>)]
Saves the currently active page in the editor to the file named.
[FILECLOSE]
Closes the currently active page in the editor. If the page contains unsaved changes, a dialog requiring a manual response will be displayed by the IDE.
[PROJECTCLOSE]
Closes the currently active project. If any file in the project contains unsaved changes, dialogs requiring manual responses will be displayed by the IDE.
[SELECT(<filename>)]
Selects the specified file in the editor, load it if the file is not currently loaded. Returns 1 (true) in DDEResult if successful.
[COMPILE]
Compiles the currently open project. Returns 1 (true) in DDEResult if successful.
[COMPILE(<projectfilename>)]
Loads the specified project (closing the previous project, if present) and then compiles it. Returns 1 (true) in DDEResult if successful.
[LINE(n)]
Returns the contents of line n in the currently selected page in the editor, or "**EOF**" if n is greater than the number of lines in the file.
[DELETE(n)]
Deletes line n in the currently selected page in the editor. Returns "**EOF**" if n is greater than the number of lines in the file.
[ADD(<string>]
Adds a line of text to the end of the file in the currently selected page in the editor.
[INSERT(n,<string>)]
Inserts a line of text before line n in the currently selected page in the editor. Returns "**EOF**" if n is greater than the number of lines in the file. |
|
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Mon Apr 12, 2004 1:37 pm Post subject: Re: Run a script that isn't compiled? |
|
|
| gwardell wrote: | Hi,
What I want to do is to programmatically generate a script on the fly, push it to a remote machine on my LAN, and then have a scheduled task run it.
I know how to setup the scheduled task. But I don't know if VDS can run a text script in the background like that.
Gary |
gwardell,
If you are not using any DLL's you can download the free Personal VDS 4 that is just an interpreter. I don't know but I think the lic. say that you cannot use it in a commercial environment but if you ask CR nicely they may let you use it for your purposes. You can download Personal VDS 4 from http://www.dialogscript.com/vds.html the download link is at the bottom of the page. _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|