Tobi.RPA
(T. F.)
October 17, 2022, 12:35pm
1
Hi all,
I need to write a .VBS File with UiPath. I know about the invoke VBscript activity, but i have to create a new VBS File. I´ve tried to use the Write Text File activity, but always get an compiler error “expression expected”. I know, there´s something missing, in an other RPA-Tool it could be solved with this (ignore the quotations):
" >>Code<< "
Is there a similar way to create a VBS file with UiPath?
Many thanks!!
sarathi125
(Parthasarathi)
October 17, 2022, 1:13pm
2
@Tobi.RPA ,
Welcome to UiPath Community!
Try something like this, it is working for me.
Are you getting the error while writing the file or while executing the created file?
Tobi.RPA
(T. F.)
October 17, 2022, 1:46pm
3
@sarathi125
Many thanks!
This works for small scripts. But if there are many rows of code, it´s gonna be hard. This is why i´m looking for anohter solution…
Get the error while writing.
sarathi125
(Parthasarathi)
October 17, 2022, 2:38pm
4
@Tobi.RPA ,
From where you are getting the script, you can use “Append File Activity” instead of the Write File.
using Append File Activity you can loop the input script and append it to the output file
postwick
(Paul)
October 17, 2022, 2:44pm
5
What are you trying to achieve? Why are you trying to write VBS files with UiPath? It’s not really what UiPath is intended for.
Tobi.RPA
(T. F.)
October 24, 2022, 11:58am
6
Thank you!
Append File? Do you mean the invoke VBScript activity? I´ve tried that, but does not work for us so well.
Is there no other way?
Tobi.RPA
(T. F.)
October 24, 2022, 2:57pm
7
Solution:
<a> Code </a>.value
OR if you have special characters, you should use a CDATA block:
<![CDATA[ Code ]]>.Value
1 Like
system
(system)
Closed
October 27, 2022, 2:58pm
8
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.