Page 1 of 1
"Old" Basic Script to new VB scripts in external file
Posted: Sun Apr 24, 2022 11:36 am
by Chris1225
Hello
I am in the process of upgrade from an older x86 version to the latest x64 version.
How can I translate "basic script" where the code is in an external file, in the new version?
Thanks in advance
Christophe
Re: "Old" Basic Script to new VB scripts in external file
Posted: Tue Apr 26, 2022 11:32 am
by Oleg
May I see your old task and the script?
Maybe I can help you. The language is very similar but there are some difference.
Re: "Old" Basic Script to new VB scripts in external file
Posted: Tue Apr 26, 2022 1:59 pm
by Chris1225
Yes but the pb is that I have a lot of "basic task" with the code in an external file.
So I hope to find a solution to replace by a VB script task, with code in external file.
And so I need to change my scripts once

Re: "Old" Basic Script to new VB scripts in external file
Posted: Wed Apr 27, 2022 5:05 pm
by Oleg
Look at the screenshot how to include text from external file

- VbScript.png (27.4 KiB) Viewed 3890 times
Another way (more preferred):
use this text in VB Script text (for example)
Code: Select all
execute include("C:\temp\test.vbs")
The extension is described here:
https://robotask.com/help/index.html?sc ... esions.htm
These extensions works in actions:
Re: "Old" Basic Script to new VB scripts in external file
Posted: Fri Apr 29, 2022 10:57 am
by Chris1225
Ok thanks
