
CODE: [Copy to clipboard]@echo off
set/p choose=请选择你要打开的路径的行数:
cls
echo 请稍后,正在处理中…………
if "%choose%"=="1" start "" c:\ && goto cn-dos
set/a n=%choose%-1
for,/f,"delims= skip=%n%",%%a,in,('dir /ad/s/b c:\'),do,(
start "" "%%a"
goto cn-dos
)
:cn-dos
pause
CODE: [Copy to clipboard]我想用指令显示出第2行目录列表的内容:Application Compatibility Scriptsaddins
Application Compatibility Scripts
AppPatch
assembly
Cluster
…………很多……略…掉
CODE: [Copy to clipboard]得到结果:dir /b /ad|more +1|LABEL 2>NUL|more +2|find /v ""|find /v "无效"
CODE: [Copy to clipboard]用了 find /v "无效" 是因为卷标只允许最长32个字节,但上面取出的内容超过了规定长度,所以滤掉了系统提示无效的内容:)Application Compatibility Scripts
CODE: [Copy to clipboard]这样,运行以后,这个Application Compatibility Scripts被取出的内容就会存到你的剪辑板中,用的时候鼠标右键菜单里选择 “粘贴” 功能就行了:)dir /b /ad|more +1|LABEL 2>NUL|more +2|find /v ""|find /v "无效"|CLIP
CODE: [Copy to clipboard][ Last edited by redtek on 2006-11-26 at 09:05 AM ]CLIP.exe 剪贴板工具 (Windows Server 2003系统自带此工具)
=============================================================
描述:
将命令行工具的输出重定向到 Windows 剪贴板。这个文本输出可以被粘贴到其他程序中。
参数列表:
/? 显示帮助消息。
示例:
DIR | CLIP 将一份当前目录列表的副本放入 Windows 剪贴板。
CLIP < README.TXT 将 readme.txt 的一份文本放入 Windows 剪贴板。
WinClip.exe 前贴板数据处理工具 (第三方工具)
=============================================================
usage: winclip [-v|h] [-w|u|m] [-l lang] [-s sublang] [-b] -c|-p|-i [filename]
-v Display version and copyright information
-h Display this help message
-c Copy to clipboard
-p Paste from clipboard
-i Print the type of the clipboard's contents
-u Data to be copied / pasted is in Unicode format
-m Unicode data is multi-byte
-b Include BOM with Unicode data
-w Data is in the Windows code page (OEM code page is the default)
-l Specify the language for the data to be copied
-s Specify the sublanguage for the data to be copied
附件 1:clip.rar (2006-11-26 22:04, 34.27 K, 下载附件所需积分 1 点 ,下载次数: 28)
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |