Print Page | Close Window

Feeding script from host and executing it

Printed From: Rocket Software
Category: AccuTerm Knowledge Base (read only)
Forum Name: Scripting & Automation
Forum Description: Customize and control AccuTerm using scripts and automation
URL: https://forum.asent.com/forum_posts.asp?TID=2626
Printed Date: March 26 2026 at 8:51pm
Software Version: Web Wiz Forums 12.03 - http://www.webwizforums.com


Topic: Feeding script from host and executing it
Posted By: danieldeslandes
Subject: Feeding script from host and executing it
Date Posted: May 03 2017 at 9:06am
Hi,

I am trying to run a script on the client's PC to check if a file exist. I want to feed the script statements from the host and execute them

I am not sure how to proceed as nothing I try works.

Here is an example of what I am trying to run right now, the script is not exactly what I want to achieve but it is for testing purpose

      SCRIPT="Sub Main":CHAR(10):'ChDir "D:\LPCOFILEUPLOADER\"':CHAR(10):'F$ = Dir$("*.exe")':CHAR(10):'While F$ <> ""':CHAR(10):'Debug.Print F$;" ";FileDateTime(F$)':CHAR(10):'F$ = Dir$()':CHAR(10):'Wend':CHAR(10):'End Sub'

PRINT ESC:STX:'P':SCRIPT:CR:


is there something I don't understand with how we should encore the statements ?

big thanks!



Replies:
Posted By: Shrek59
Date Posted: May 03 2017 at 8:23pm
In your AccuTerm account (or wherever you installed the AccuTerm host programs), you will find a file named SAMPLES. That contains a number of programs for use with AccuTerm to do various things.

One of those is named: ATTESTFILE and this builds and runs a script on the client computer to test whether a file exists or not.

There is a 'readme.txt' file in there that tells you what each program does.

HTH,

Brian



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.03 - http://www.webwizforums.com
Copyright ©2001-2019 Web Wiz Ltd. - https://www.webwiz.net