Gents, i am trying to start a powershell script from a WshShell.Run command in vbscript.
the script I am trying to run has white space in the path to the where the powershell script is located.
i know i can just copy the powershell script locally to a folder with no white space but it doesnt seem to be the point.
i have tried
%systemdrive%\system32\windowspowershell\v1.0\powershell.exe 'c:\tools\power shell\script.ps1'
%systemdrive%\system32\windowspowershell\v1.0\powershell.exe "c:\tools\power shell\script.ps1"
%systemdrive%\system32\windowspowershell\v1.0\powershell.exe ^&'c:\tools\power shell\script.ps1'
%systemdrive%\system32\windowspowershell\v1.0\powershell.exe &'c:\tools\power shell\script.ps1'
i am not having any luck....
I Hear, I Forget
I See, I Remember
I Do, I Understand
Ronald McDonald
the script I am trying to run has white space in the path to the where the powershell script is located.
i know i can just copy the powershell script locally to a folder with no white space but it doesnt seem to be the point.
i have tried
%systemdrive%\system32\windowspowershell\v1.0\powershell.exe 'c:\tools\power shell\script.ps1'
%systemdrive%\system32\windowspowershell\v1.0\powershell.exe "c:\tools\power shell\script.ps1"
%systemdrive%\system32\windowspowershell\v1.0\powershell.exe ^&'c:\tools\power shell\script.ps1'
%systemdrive%\system32\windowspowershell\v1.0\powershell.exe &'c:\tools\power shell\script.ps1'
i am not having any luck....
I Hear, I Forget
I See, I Remember
I Do, I Understand
Ronald McDonald