|
dosz
中级用户
   一看二跟三动手
积分 396
发帖 188
注册 2005-10-23 来自 上海
状态 离线
|
『楼 主』:
[讨论]批处理行号是如何加上去的?
使用 LLM 解释/回答一下
|

*/. . . * .
.\* . * dosz
*/ . ./\~~~~~~~~~~~~'\. ^|◆
\* ,/,..,\,...........,\.◆
^|^| ..▎# ▎田 田 ▎ ^| ▎◆
^|^| ^&^&▎ ▎ ▎'^|'▎ o
^|^| ##■■■■■■■■■■〓 |
|
2009-4-11 10:20 |
|
|
dosz
中级用户
   一看二跟三动手
积分 396
发帖 188
注册 2005-10-23 来自 上海
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
请输入要查找的文件名
- @echo off
- cls
- :loop
- set filename=
- set/p filename=请输入要查找的文件名(支持通配符,如"*.mp3 mp3.*"):
- if not defined filename (cls & if errorlevel 1 cls&msg * dosz 提示:输入了错误的命令,这是为什么呢~,是否想忽悠?&goto loop)
- echo.
- set/p sheet=请输入要写入例表的文件名:┗┛可选项(不要扩占名)
- set num=
- ECHO ☆☆☆ %DATE% %time% ☆☆☆>%temp%\%sheet%.txt
- set drv= C D E F G H I J K L M N O P Q R S T U V W X Y Z
- for %%a in (%drv%) do (
- if exist %%a:\nul (
- cls&echo 正在搜索 %%a: 盘下的 %filename% ...
- dir>nul 2>nul /s/b/a/o "%%a:\%filename%" >>%temp%\%sheet%.txt&&set num=1
- )
- )
- if "%num%" == "1" (
- @mode con cols=120
- cls&echo.&echo.
- color 1f
- echo =========== 为你找到下列文件: "%filename%" 并保存到“%temp%\%sheet%.txt”文件中 ================
- title 快速打开文件
- echo.
- for /f "delims=" %%i in (%temp%\%sheet%.txt) do echo %%i
- ) else (cls&echo.&echo.&echo ***** 没有找到文件: "%filename%" *****&pause>nul&GOTO :EOF)
- start %temp%\%sheet%.txt
- pause
dosz发表于: 2009-04-11 21:18
Last edited by dosz on 2009-4-11 at 10:27 ]
Please enter the file name to be searched
- @echo off
- cls
- :loop
- set filename=
- set/p filename=Please enter the file name to be searched (supports wildcards, such as "*.mp3 mp3.*"):
- if not defined filename (cls & if errorlevel 1 cls&msg * dosz Prompt: An incorrect command was entered, why is this~, do you want to fool? &goto loop)
- echo.
- set/p sheet=Please enter the file name to be written to the list: ┗┛Optional (do not expand the name)
- set num=
- ECHO ☆☆☆ %DATE% %time% ☆☆☆>%temp%\%sheet%.txt
- set drv= C D E F G H I J K L M N O P Q R S T U V W X Y Z
- for %%a in (%drv%) do (
- if exist %%a:\nul (
- cls&echo Searching for %%a: under the disk %filename% ...
- dir>nul 2>nul /s/b/a/o "%%a:\%filename%" >>%temp%\%sheet%.txt&&set num=1
- )
- )
- if "%num%" == "1" (
- @mode con cols=120
- cls&echo.&echo.
- color 1f
- echo =========== The following files are found for you: "%filename%" and saved to the "%temp%\%sheet%.txt" file ================
- title Quick Open File
- echo.
- for /f "delims=" %%i in (%temp%\%sheet%.txt) do echo %%i
- ) else (cls&echo.&echo.&echo ***** No file found: "%filename%" *****&pause>nul&GOTO :EOF)
- start %temp%\%sheet%.txt
- pause
dosz posted on: 2009-04-11 21:18
Last edited by dosz on 2009-4-11 at 10:27 ]
|

*/. . . * .
.\* . * dosz
*/ . ./\~~~~~~~~~~~~'\. ^|◆
\* ,/,..,\,...........,\.◆
^|^| ..▎# ▎田 田 ▎ ^| ▎◆
^|^| ^&^&▎ ▎ ▎'^|'▎ o
^|^| ##■■■■■■■■■■〓 |
|
2009-4-11 10:24 |
|
|
dosz
中级用户
   一看二跟三动手
积分 396
发帖 188
注册 2005-10-23 来自 上海
状态 离线
|
|
2009-4-11 10:35 |
|
|
yishanju
银牌会员
     [b]看你妹啊[/b]
积分 1488
发帖 1357
注册 2006-5-20
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
深度用的是PHPWIND论坛吧,可能 不支持UBB
It seems that this is using the PHPWIND forum deeply, and it may not support UBB.
|

有问题请发论坛或者自行搜索,再短消息问我的统统是SB |
|
2009-4-11 10:40 |
|
|
HAT
版主
       
积分 9023
发帖 5017
注册 2007-5-31
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
行号需要使用的标签是list
你可以到深度问问他们的管理员为什么不支持list
Line numbers need to use the tag list
You can go to ShenDu and ask their administrators why they don't support list
|

 |
|
2009-4-11 12:07 |
|
|
netbenton
银牌会员
     批处理编程迷
积分 1916
发帖 752
注册 2008-12-28 来自 广西
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
<>
<>我学也会了,谢谢各位
<>原来是这样的
<>
- 我学也会了,谢谢各位
- 原来是这样的
gg
Last edited by netbenton on 2009-4-11 at 18:41 ]
I've learned it, thank you everyone
It turns out to be like this
- I've learned it, thank you everyone
- It turns out to be like this
gg
Last edited by netbenton on 2009-4-11 at 18:41 ]
|

精简
=> 个人 网志  |
|
2009-4-11 13:50 |
|
|
yishanju
银牌会员
     [b]看你妹啊[/b]
积分 1488
发帖 1357
注册 2006-5-20
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
BS楼上灌纯净
BS upstairs for spamming pure content
|

有问题请发论坛或者自行搜索,再短消息问我的统统是SB |
|
2009-4-11 14:36 |
|