You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As I specified in the Issue title, there are cases where '%0' could have spaces in the path anywhere like in %USERNAME%(Vivek Shah), and you have clearly not handled those cases while passing the parameter as '%0' which breaks the script in those cases and throws given error:
The term 'C:\Users\Vivek' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At line:1 char:1
Hi! Thank you for reporting this bug and special thanks for linking the StackOverflow question! I've (hopefully) fixed the problem with the latest commit.
%0 resolves to the current file path enclosed with double quotes, so that should work. The problem was with %~dp0\PsExec.exe because %~dp0 removes any surrounding quotation marks.
As I specified in the Issue title, there are cases where
'%0'
could have spaces in the path anywhere like in%USERNAME%
(Vivek Shah), and you have clearly not handled those cases while passing the parameter as'%0'
which breaks the script in those cases and throws given error:See this Stackoverflow Question that I had to ask due to this blocking issue..
Can you atleast suggest any immediate fixes for this ??
The text was updated successfully, but these errors were encountered: