1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00

More handling for directory with spaces on Windows

This commit is contained in:
TheArtist 2015-09-11 19:36:36 +03:00
parent d3dd3f34e6
commit b71612eea4
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@ setlocal EnableDelayedExpansion
echo %*|>nul findstr /rx \-.* echo %*|>nul findstr /rx \-.*
if ERRORLEVEL 1 ( if ERRORLEVEL 1 (
for /f %%i in ('python %~dp0\autojump %*') do set new_path=%%i for /f %%i in ('python "%~dp0\autojump" %*') do set new_path=%%i
if exist !new_path!\nul ( if exist !new_path!\nul (
echo !new_path! echo !new_path!
pushd !new_path! pushd !new_path!

View File

@ -3,7 +3,7 @@ setlocal EnableDelayedExpansion
echo %*|>nul findstr /rx \-.* echo %*|>nul findstr /rx \-.*
if ERRORLEVEL 1 ( if ERRORLEVEL 1 (
for /f %%i in ('python %~dp0\autojump %*') do set new_path=%%i for /f %%i in ('python "%~dp0\autojump" %*') do set new_path=%%i
if exist !new_path!\nul ( if exist !new_path!\nul (
start !new_path! start !new_path!
) else ( ) else (