More handling for directory with spaces on Windows

pull/381/head
TheArtist 9 years ago
parent d3dd3f34e6
commit b71612eea4

@ -3,7 +3,7 @@ setlocal EnableDelayedExpansion
echo %*|>nul findstr /rx \-.*
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 (
echo !new_path!
pushd !new_path!
@ -18,4 +18,4 @@ if ERRORLEVEL 1 (
)
) else (
python "%~dp0\autojump" %*
)
)

@ -3,7 +3,7 @@ setlocal EnableDelayedExpansion
echo %*|>nul findstr /rx \-.*
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 (
start !new_path!
) else (

Loading…
Cancel
Save