Here is some additional help:
VBscript needs to be run through cmd and cscript, so you can do this with the Start Process activity. However, there could be some admin issues, which then you would want to call it through a Powershell script using the Run Powershell activity.
Here are some links:
I did a quick search and found this that might help:
It says WScript.Arguments(0) or WScript.Arguments.Item(0) can be used to access the arguments. You would need to use this in your vbscript.
You might want to test this with some script editor where you can pass arguments, or even call it from command line, like
c:\windows\system32\cscript.exe "C:\folderpath\Program_Filter_Excel.vbs" "vikas"
Once it is set up to use arguments, then you can set up your Start Process as suggested.
[image]
T…
Hi,
You can create a powershell script using Notepad but use a filetype as .ps1
The script will be like the above that I posted, but you may need the full filepaths.
invoke-expression "c:\windows\system32\cmd.exe /C c:\windows\system32\cscript.exe 'filepathofscript.vbs'"
You can also add arguments to be used in the script, but I can’t say I’m an expert; there is resources online on how to do use variables in powershell and pass them to .vbscripts though.
Hope that helps better.
Thanks.