Answered by:
Calling powershel script using visual studio express or pro

Question
-
Hi All ,
I am very new to visual studio and I am writing a very small script .
Here is the info.
My project contains a simple text box and submit button . When I enter an number and click on submit button.. it should call the powershell script which I have written. Any ideas on how I can execute it or any example that shows a script calling using Visual studio
Regards,
Phanidhar
- Moved by Anna Cc Tuesday, July 30, 2013 8:30 AM
Friday, July 26, 2013 12:31 PM
Answers
-
Might ask them over here.
http://social.msdn.microsoft.com/Forums/en-us/home?forum=vbgeneral&filter=alltypes&sort=lastpostdesc
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows]
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.- Proposed as answer by Dave PatrickMVP Friday, August 2, 2013 2:22 AM
- Marked as answer by Just Karl Friday, September 20, 2013 8:22 PM
Friday, August 2, 2013 2:22 AM -
You can use the CreateProcess or ShellExecuteEx API's to launch "powershell.exe". Pass the number on the command-line.
-- David
- Proposed as answer by Dave PatrickMVP Friday, August 2, 2013 2:21 AM
- Marked as answer by Just Karl Friday, September 20, 2013 8:22 PM
Thursday, August 1, 2013 6:42 PM
All replies
-
Hi,
Windows PowerShell forum is more suitable for you. Please reopen a new case on Windows PowerShell forum. Here is the link:
http://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=winserverpowershell
I will move your case off-topic.
Thanks for your understanding.
Sunny Cao
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.Tuesday, July 30, 2013 8:29 AM -
You can use the CreateProcess or ShellExecuteEx API's to launch "powershell.exe". Pass the number on the command-line.
-- David
- Proposed as answer by Dave PatrickMVP Friday, August 2, 2013 2:21 AM
- Marked as answer by Just Karl Friday, September 20, 2013 8:22 PM
Thursday, August 1, 2013 6:42 PM -
Might ask them over here.
http://social.msdn.microsoft.com/Forums/en-us/home?forum=vbgeneral&filter=alltypes&sort=lastpostdesc
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows]
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.- Proposed as answer by Dave PatrickMVP Friday, August 2, 2013 2:22 AM
- Marked as answer by Just Karl Friday, September 20, 2013 8:22 PM
Friday, August 2, 2013 2:22 AM