2014-01-12 19:34:28 +00:00
|
|
|
@echo off
|
2014-01-13 19:04:39 +00:00
|
|
|
setlocal EnableDelayedExpansion
|
2014-01-12 19:34:28 +00:00
|
|
|
|
|
|
|
echo %*|>nul findstr /rx \-.*
|
|
|
|
if ERRORLEVEL 1 (
|
2016-10-07 13:18:03 +00:00
|
|
|
for /f "delims=" %%i in ('python "%~dp0\autojump" %*') do set new_path=%%i
|
2014-01-13 19:04:39 +00:00
|
|
|
if exist !new_path!\nul (
|
2016-10-07 13:18:03 +00:00
|
|
|
start "" "explorer" !new_path!
|
2014-01-12 19:34:28 +00:00
|
|
|
) else (
|
|
|
|
echo autojump: directory %* not found
|
|
|
|
echo try `autojump --help` for more information
|
|
|
|
)
|
|
|
|
) else (
|
2015-09-11 14:41:23 +00:00
|
|
|
python "%~dp0\autojump" %*
|
2017-07-20 06:13:18 +00:00
|
|
|
)
|