Passing a commandline to an elevate:true profile on the commandline doesn't separate args
#12.597 aperta il 28 feb 2022
Metriche repository
- Star
- (35.764 star)
- Metriche merge PR
- (Merge medio 27g 19h) (24 PR mergiate in 30 g)
Descrizione
(from a teams convo)
I bet that
wt --profile "Admin Cmd" -- cmd.exe /c D:\os\src\tools\razzle.cmd amd64fre developer_dir D:\Repos\developer\groups\jevansa no_optwould work
[error 2147942402 (0x80070002) when launching `"cmd.exe /c D:\os\src\tools\razzle.cmd amd64fre developer_dir D:\Repos\developer\groups\jevansa no_opt"']I ran:wt --profile "Admin Cmd" -- cmd.exe /c D:\os\src\tools\razzle.cmd amd64fre developer_dir D:\Repos\developer\groups\jevansa no_optI think it's still trying to take the whole string and pass to CreateProcess. Is there a way to get it split up?
it might be the fact that when you do have an
elevate:trueprofile, we have toCreateProcessanother terminal process, and I bet we're passing the whole bit after--as a single arg to the elevated wt