Jump to content

Powershell: Start-Process ERROR

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.



Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...