![]() |
| The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum. |
|
Post Reply
|
| Author | |
danieldeslandes
Newbie
Joined: May 03 2017 Location: Montreal Status: Offline Points: 7 |
Post Options
Thanks(0)
Quote Reply
Topic: Feeding script from host and executing itPosted: 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!
|
|
![]() |
|
Shrek59
Senior Member
Joined: December 04 2006 Location: New Zealand Status: Offline Points: 208 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |