Jump to content

Powershell: Start-Process ERROR


spcurtis81

Recommended Posts

Hi There. Apologies if this is more of a case of my getting something wrong with my cmdlets but I'm struggling with the Powershell on my iPhone app.

I have a batch file I would like to be able to execute from my phone however I'm struggling to get it to work. I'm using the following cmdlet...


start-process c:\bat\filename.bat

... however I keep getting the following error message...

"Error: This command cannot be executed due to the error: The system cannot find the file specified"

I've checked the location of the batch file and it's definitely correct. I did try putting the file and location in ""'s and this returned a "Command executed successfully" message however the application my batch file is supposed to launch has not launched.

My biggest fear is that this is probably my lack of knowledge of Powershell but any help would be gratefully received all the same.

Thanks,

Steve

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...