Ajesh
27th August 2018, 16:22
Dear all,
I am trying to run certain Powershell commands using run.prog but i am getting -1 as the return value . Have tried lots of P&C.
retval = run.prog("Powershell $xlsSpreadsheet = 51","",RP_WAIT)
retval = run.prog("Powershell.exe $xlsSpreadsheet = 51","",RP_WAIT)
retval = run.prog("powershell.exe $xlsSpreadsheet = 51","",RP_WAIT)
Have tried running a .ps1 batch File and tried to run it using Powershell.exe but unable to do so. Any specific thing i am missing?
Regards
Ajesh
I am trying to run certain Powershell commands using run.prog but i am getting -1 as the return value . Have tried lots of P&C.
retval = run.prog("Powershell $xlsSpreadsheet = 51","",RP_WAIT)
retval = run.prog("Powershell.exe $xlsSpreadsheet = 51","",RP_WAIT)
retval = run.prog("powershell.exe $xlsSpreadsheet = 51","",RP_WAIT)
Have tried running a .ps1 batch File and tried to run it using Powershell.exe but unable to do so. Any specific thing i am missing?
Regards
Ajesh