spcurtis81 Posted November 8, 2012 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
Marius Posted November 9, 2012 Posted November 9, 2012 Hi Steve, Try: start-process "c:\bat\filename.bat" Paul 1
digbyp Posted November 9, 2012 Posted November 9, 2012 There are examples at bottom of the page in this link http://ss64.com/ps/start-process.html
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now