@echo off&setlocal EnableDelayedExpansion
set n=
for /f "tokens=*" %%i in ('dir /b *.cmd *.bat') do set n=!n! %%i
echo %n%
for /f "tokens=1,2 delims= " %%i in ("%n%") do (
echo %%i %%j
call :fun %%i %%j
goto exit
)
:fun
echo =======
echo %1
echo %2
:exit
批处理变多行为一行
原创
©著作权归作者所有:来自51CTO博客作者jker的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
mysql一行拆分成多行 mysql一行转多行
show databases;:显示所有数据库use test;:进入到test数据库中show tables from information_schema;:显示information_schema数据库中的所有的表select database();:查询当前在哪个数据库中(database()是mysql提供的函数)desc student;:查询student表的表结构,如下图所示:se
mysql一行拆分成多行 mysql一行转多行 mysql两个查询结果拼接 mysql内连接 mysql字符串分割成多列