윈 도 우 파일 및 폴더 경로 복사 컨텍스트 메뉴
2022.02.23 17:13
오른쪽 마우스 메뉴 파일 경로 복사 추가 경로 복사 컨텍스트 메뉴.cmd
@echo off&pushd "%~dp0"&Title 경로 복사&mode 50,5&color 1f
echo.
echo.
echo 경로 복사 컨텍스트 메뉴...
echo.
echo [Y]추가 [N]제거
choice /c YN >nul
if %errorlevel%==1 goto add
if %errorlevel%==2 goto del
cls
exit
:add
reg.exe add "HKEY_CLASSES_ROOT\*\shell\경로 복사" /v "Icon" /d "shell32.dll,133" /f
reg.exe add "HKEY_CLASSES_ROOT\*\shell\경로 복사\Command" /v "" /d "cmd.exe /e:on /d /s /c \"for %%%%a in (\"%%1\") do @(set /p \"=%%%%~a\")^<nul ^| clip\"" /f
reg.exe add "HKEY_CLASSES_ROOT\Directory\shell\경로 복사" /v "Icon" /d "shell32.dll,133" /f
reg.exe add "HKEY_CLASSES_ROOT\Directory\shell\경로 복사\Command" /v "" /d "cmd.exe /e:on /d /s /c \"for %%%%a in (\"%%1\") do @(set /p \"=%%%%~a\")^<nul ^| clip\"" /f
exit
:del
reg.exe delete "HKEY_CLASSES_ROOT\*\shell\경로 복사" /f
reg.exe delete "HKEY_CLASSES_ROOT\Directory\shell\경로 복사" /f
수고 하셨습니다. 감사합니다.