spcurtis81 1 Posted November 8, 2012 Share Posted November 8, 2012 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 Quote Link to post Share on other sites
Administrators Marius 241 Posted November 9, 2012 Administrators Share Posted November 9, 2012 Hi Steve, Try: start-process "c:\bat\filename.bat" Paul 1 Quote Link to post Share on other sites
digbyp 29 Posted November 9, 2012 Share Posted November 9, 2012 There are examples at bottom of the page in this link http://ss64.com/ps/start-process.html Quote Link to post Share on other sites
Recommended Posts
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.