I try execute powershell script with HelloWorld, but I see error.My script:
try
{
System.Diagnostics.Process.Start("C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\Powershell.exe -File HelloWOrld.ps1");
}
catch (Exception exception)
{
}
In exception I see:
"System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start() at System.Diagnostics.Process.Start(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start(String fileName) at InstallAzurePowershell.Program.WritePowershell() in c:\Users\titans\Documents\Visual Studio 2013\Projects\InstallAzurePowershell\InstallAzurePowershell\Program.cs:line 111"
So how it's fixed?