Skip to main content
Solved

How to run .vbs file in workflow


Forum|alt.badge.img+1

How can I run a .vbs file workflow. May be either ‘Run Shell Script’ or ‘Run Windows Command’. Or is there any other options available? 

I tied to run this through ‘Run Shell Script’ but it showing an issue with Interpreter(/bin/sh)

 

Best answer by ivysakh

Hi @Ajeesh_G , I am not sure if can vb scripts natively in linux. You might need to use an emulator such as ‘Wine’ to run Windows applications and scripts on Linux.

You can try below command in the ‘Run Shell Script’ after installing Wine:
 

wine wscript HelloWorld.vbs


However, if you are trying to run it on a windows machine, this is how you can do it:

Add the ‘Run Windows Command’ step and configure it to call the vb script:

 

In this scenario, a sample VBScript located in the 'scripts' folder is utilized to display a message box with the text 'Hello, World'.
Upon executing the workflow, the output observed is as follows:

 

View original
Did this topic help you find an answer to your question?

ivysakh
Space Explorer
Forum|alt.badge.img+3
  • Space Explorer
  • May 25, 2024

Hi @Ajeesh_G , I am not sure if can vb scripts natively in linux. You might need to use an emulator such as ‘Wine’ to run Windows applications and scripts on Linux.

You can try below command in the ‘Run Shell Script’ after installing Wine:
 

wine wscript HelloWorld.vbs


However, if you are trying to run it on a windows machine, this is how you can do it:

Add the ‘Run Windows Command’ step and configure it to call the vb script:

 

In this scenario, a sample VBScript located in the 'scripts' folder is utilized to display a message box with the text 'Hello, World'.
Upon executing the workflow, the output observed is as follows:

 


Cansu
Community Manager
Forum|alt.badge.img+3
  • Community Manager
  • June 3, 2024

Hi @Ajeesh_G I’m closing this post for now, if you have any follow-up questions please don’t hesitate to share them here or create a new post 🙋‍♀️


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings