solan 当前离线
一级士官
@echo off @echo %cd%>1.txt for /f "delims=U" %%i in (1.txt) do echo %%i set ks=%%i reg add "某个注册表项" /ve /t REG_SZ /d "%ks%UBS1\1.ico,0" /f del 1.txt pause复制代码
TOP
pcl_test 当前离线
荣誉版主
@echo off for /f "delims=" %%a in ('dir /s /b ..\USB1\1.ico') do set "f=%%a" reg add "某个注册表项" /ve /t REG_SZ /d "%f%,0" /f pause复制代码
kingshui 当前离线
@echo off set p=%~dp0 set p=%p:~0,-5% reg add "某个注册表项" /vb /t REG_SZ /d "%p%USB1\1.ico" /f复制代码
@echo off for /f "delims=" %%a in ('dir /s /b ..\USB1\1.ico') do set "路径=%%~dpa" echo;%路径% pause复制代码
@echo off @echo %cd%>1.txt for /f "delims=U" %%i in (1.txt) do set “ks=%%i” reg add "某个注册表项" /ve /t REG_SZ /d "%ks%UBS1\1.ico,0" /f reg add "某个注册表项" /f /ve /t "REG_SZ" /d "\"%ks%USB1\55.exe\" -ug -use_file_dir \"%%1\"" del 1.txt pause复制代码
/zhqsystem/zhq 当前离线
中尉
@echo off for /f "delims=" %%a in ('dir /b /s ..\UBS1\1.ico') do set "f=%%~dpa" reg add "某个注册表项" /ve /t REG_SZ /d "%f%1.ico,0" /f reg add "某个注册表项" /f /ve /t "REG_SZ" /d "\"%f%55.exe\" -ug -use_file_dir \"%%1\"" pause复制代码