Rocket Software Homepage
Forum Home Forum Home > AccuTerm Knowledge Base (read only) > Scripting & Automation
  New Posts New Posts RSS Feed - Feeding script from host and executing it
  FAQ FAQ  Forum Search   Register Register  Login Login

The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum.

Forum LockedFeeding script from host and executing it

 Post Reply Post Reply
Author
Message
danieldeslandes View Drop Down
Newbie
Newbie


Joined: May 03 2017
Location: Montreal
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote danieldeslandes Quote  Post ReplyReply Direct Link To This Post Topic: Feeding script from host and executing it
    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!
Back to Top
Shrek59 View Drop Down
Senior Member
Senior Member


Joined: December 04 2006
Location: New Zealand
Status: Offline
Points: 208
Post Options Post Options   Thanks (0) Thanks(0)   Quote Shrek59 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.03
Copyright ©2001-2019 Web Wiz Ltd.