"Old" Basic Script to new VB scripts in external file

Discuss RoboTask here
Post Reply
Chris1225
Posts: 5
Joined: Thu Apr 21, 2022 8:50 am

"Old" Basic Script to new VB scripts in external file

Post 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
Oleg
Site Admin
Posts: 3000
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: "Old" Basic Script to new VB scripts in external file

Post 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.
Oleg Yershov
Chris1225
Posts: 5
Joined: Thu Apr 21, 2022 8:50 am

Re: "Old" Basic Script to new VB scripts in external file

Post 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 :-)
Oleg
Site Admin
Posts: 3000
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: "Old" Basic Script to new VB scripts in external file

Post by Oleg »

Look at the screenshot how to include text from external file
VbScript.png
VbScript.png (27.4 KiB) Viewed 1394 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:
Oleg Yershov
Chris1225
Posts: 5
Joined: Thu Apr 21, 2022 8:50 am

Re: "Old" Basic Script to new VB scripts in external file

Post by Chris1225 »

Ok thanks ;-)
Post Reply