benmyers
(Benmyers)
September 27, 2021, 2:08am
1
Hi, I am parsing invoices and would like to print the pdf.
I am using the powershell command below but keep receiving this error.
Invoke Power Shell: Cannot validate argument on parameter 'FilePath'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.
"Start-Process -FilePath $fname -Verb Print"
I have powershell variable setup and an assign before it
strfullpath = strDocPath +"\" + FileName
fname - in - string - strfullpath
Any help would be appreciated.
Pablito
(Pawel Wozniak)
September 28, 2021, 10:39am
3
@benmyers - please do not post the same question on separate topics. It will not speed up the answer.
2 Likes
jeevith
(Jeevith Hegde, Ph.D.)
September 28, 2021, 11:13am
4
Hi @benmyers ,
Have you followed this tutorial? It shows you exactly how you can pass parameters to the Invoke Powershell activity.
How to Integrate PowerShell with UiPath
This topic is a step by step guide for integrating Powershell with Uipath. There is an ‘Invoke Powershell Activity’ available in Uipath which can be used to run the powershell scripts.
For our example purpose, let us consider a simple powershell script which gives us the status of windows services on the machine. This script will have two input parameters:
• ServiceState (String) – To get the status of service. For e.g. ‘Running’ , ‘Stopped’ etc
• Outp…
benmyers
(Benmyers)
September 29, 2021, 1:29am
5
@jeevith thanks for your reply, not sure why it wasn’t working just deleted everything and started again and now its working. Thanks
system
(system)
Closed
October 2, 2021, 1:30am
6
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.