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
{{ message }}
This repository has been archived by the owner on Sep 23, 2021. It is now read-only.
sudo-prompt generates a batch file like the following on the fly:
@echo off
cd "path\to\executable"
"executable.exe" argument1 argument2
However, if the executable is in a different disk than the %TEMP% directory in Windows, then the cd line will fail to actually change the current working directory to where the executable is, as cd does not switch disks by default. Subsequently, sudo-prompt fails with a "could not find executable" error or somesuch.
sudo-prompt
generates a batch file like the following on the fly:However, if the executable is in a different disk than the %TEMP% directory in Windows, then the cd line will fail to actually change the current working directory to where the executable is, as cd does not switch disks by default. Subsequently, sudo-prompt fails with a "could not find executable" error or somesuch.
To fix it, as discussed in this SuperUser question, you need to add
/d
.I'd do a pull request, but the change is trivial:
The text was updated successfully, but these errors were encountered: