AveYo / LeanAndMean

snippets for power users
MIT License
239 stars 37 forks source link

[RunAsTI] "Speech marks" in args do not work properly #6

Closed he3als closed 1 year ago

he3als commented 1 year ago

Command Prompt (using the script provided)

cmd_IyH8vBFdcN

PowerShell (using the script provided)

cmd_0V2pi7BnvZ

Batch Script (using call :RunAsTI)

notepad++_NVerREIumy

AveYo commented 1 year ago

Yeah that's a bad regex on my part! This should fix it:

}; $A=$env:1-split'\W',2; RunAsTI $A[0] $A[1]; #:RunAsTI lean & mean snippet by AveYo, 2023.07.06

Sorry for late reply

Nope. It leads to other issues

AveYo commented 1 year ago

Hmm, I rushed the fix, I can already see bad scenarios. TBD Guess it's fixed now.