ããã©ã«ã解ä½ã³ãã³ãã
ä¹ ã ã®ãããã¹ã¯ãªãããã¨ããããããã°èªä½ã2ã¶æã¶ããã
ãããªã¬ã³ã¼ãã¼ã¯ãæ±èRDæ©ã使ã£ã¦ããããããã«ã¯ããã©ã«ã解ä½ãã¨ããæ©è½ãããããã©ã«ãã®ä¸ã®ãã¡ã¤ã«ãå¤ã«åºãã¦ããã©ã«ãã空ã«ãã¦ãããã®ãã©ã«ããåé¤ããã
ããã¯ãWindowsã®ãã¡ã¤ã«æ´çã«ã便å©ã§ã¯ãªããã¨æã£ã¦ä½ã£ã¦ã¿ããSendToãã©ã«ãã¼ã«å ¥ãã¦ä½¿ãã
解ä½ã®ä»ã«ã空ã®ãã©ã«ããåé¤ãããå ´åã«ããæ¬å½ã«ç©ºãã確èªãã¦ããæ¶ããã¨ããç®çã«ã使ããã
@echo off setlocal pushd %1 if ERRORLEVEL 1 ( echo ãã©ã«ãã«ç§»åã§ãã¾ãã goto end ) set ERR=NO for %%A in (*) do if exist "..\%%~nxA" ( echo ãã¡ã¤ã«åãéè¤ãã¾ãï¼"%%~nxA" set ERR=YES ) for /d %%A in (*) do if exist "..\%%~nxA" ( echo ãã©ã«ãåãéè¤ãã¾ãï¼"%%~nxA" set ERR=YES ) dir /ah >NUL 2>NUL if not ERRORLEVEL 1 ( echo é ããã¡ã¤ã«ãããã¾ã set ERR=YES ) if %ERR%==YES ( echo ãã©ã«ãã解ä½ã§ãã¾ãã goto end ) for /d %%A in (*) do echo %%A\ & move /-y "%%A" .. move /-y * .. 2>NUL set DIR=%CD% pushd .. echo rmdir "%DIR%" rmdir "%DIR%" if ERRORLEVEL 1 ( echo ãã©ã«ããåé¤ã§ãã¾ããï¼"%DIR%" goto end ) :end pause