|
本帖最后由 yjqd 于 2018-4-15 13:54 编辑
批处理文件和文件列表在同一目录下
一、批处理文件内容如下:
@echo off
cd /d %~dp0
SETLOCAL ENABLEEXTENSIONS
SETLOCAL ENABLEDELAYEDEXPANSION
:r
set f=
set d=
set /p f=拖入文件列表:
echo.
for /f "delims=" %%a in ('type "%f%"') do (
set d=%%~dpa
call set d=%%d:%cd%\=%%
echo.
call echo %%d%%
)
goto :r
---------------------------------------------------------------------------------------------
二、文件列表内容如下:
Windows\explorer.exe
Windows\System32\ExplorerFrame.dll
Windows\System32\zh-CN\shdocvw.dll.mui
Windows\Branding\Basebrd\zh-CN\basebrd.dll.mui
Windows\Branding\ShellBrd\shellbrd.dll
Windows\System32\config\SOFTWARE
Program Files\Internet Explorer\ieproxy.dll
|
|