China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-01 11:26
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Help] How to detect files containing "ABC" in the file name? View 2,558 Replies 2
Original Poster Posted 2016-03-10 10:13 ·  中国 浙江 绍兴 电信
初级用户
Credits 29
Posts 13
Joined 2008-05-26 22:44
18-year member
UID 119783
Gender Male
Status Offline
In the D:\TEST folder has a batch of files, and I want to move the files whose filenames contain "ABC" to D:\ABC. How should I operate? Among them, "ABC" is consecutive like k123abc4.txt, and also if it is a long filename, how should I operate?
Floor 2 Posted 2016-11-08 15:08 ·  日本 OCN
新手上路
Credits 14
Posts 8
Joined 2007-04-17 09:29
19-year member
UID 85487
Gender Male
Status Offline
@echo off
pushd D:\TEST
for /f "tokens=*" %%i in ('dir/s/b *abc*') do (
copy "%%i" D:\ABC
)
popd
Floor 3 Posted 2016-11-09 09:03 ·  中国 海南 海口 移动
超级版主
★★★★
Credits 3,673
Posts 2,020
Joined 2016-02-01 00:00
10-year member
UID 181465
Gender Male
Status Offline
Can a computer understand and execute with robotic intelligence regarding the content of the first floor?

In the human - computer chess match, the content of the second floor is one of the pieces of information that can be provided by a pre - set program, and the first floor is the content input by a human in the human - machine interaction to the machine.

Also, it may be similar to robot devices, equipment in robot factories, robot aircraft, and network robots. When encountering specified environmental information, it makes logical judgments and displays one of the pre - set contents.

Simply understood as an interpretation - type command, based on the expected information body, inputting the information language of the contract between humans and the machine, and displaying the relevant available contents, which is a bit similar to browser search.

For the content of the second floor, the robot cannot provide it. It is necessary to collect the existing contents of humans, sort and compare them to form logical information, and then it can be used by the robot. (Can the machine use the enumeration method in "Poetry from the Sky", brute - force cracking, but even if enumeration is theoretically achieved, it is difficult to find a moderate one. The American computer collects and screens the whole world, but can it be completely enumerated? Probably not.)

Can there be a service attempt in the forum to provide relevant information by referring to the existing information in the forum and the content of the poster.

[ Last edited by zzz19760225 on 2016 - 11 - 9 at 09:20 ]
1<词>,2,3/段\,4{节},5(章)。
Forum Jump: