Hi there, I am trying to run the following VB script using invoke powershell and I am having some issues. It runs fine in powershell however I can not get it to work in Uipath. I have isScript checked. Any suggestions ?
Const WD_SaveAsType = 2
Set objWord = CreateObject(“Word.Application”)
Set objDoc = objWord.Documents.Open(“C:\Users\HP 66012\Documents\attachments\rtftotext\purchorder 6167 13.09.16.rtf”)
objDoc.SaveAs “C:\Users\HP 66012\Documents\attachments\rtftotext\rtf.txt”, WD_SaveAsType