联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
Originally posted by DOSforever at 2009-5-30 02:28 PM: 有时候有用。先告诉我有没有这样的软件,然后我再说有什么用,呵呵。
When you use wildcards to specify set, FOR scans the directory and finds each file which matches the wildcard name(s) you specified. If, during the processing of the FOR command, you create a new file that could be included in set, it may or may not appear in a some later iteration of the same FOR command. Whether or not the new file appears depends on its physical location in the directory structure. For example, if you use FOR to execute a command for all .TXT files, and the command also creates one or more new .TXT files, those new files may or may not be processed during the current FOR command, depending on where they are placed in the physical structure of the directory. This is a Windows constraint over which the command processor has no control. Therefore, in order to achieve consistent results you should construct FOR commands which do not create files that could become part of set for the current command.
Originally posted by DOSforever at 2009-6-1 08:09 AM: 当然,『启动』项只是我举个例子,我主要说的是另外一个原因。
Originally posted by DOSforever at 2009-6-2 11:19 AM: 是的,FOR 命令是个主要原因,还有别的问题,我一时想不起来了,总之,我喜欢是自然排序,而不是“伪装”排序。 有一点要注意的是,我说的是 F ...
Originally posted by DOSforever at 2009-6-3 09:02 AM: 呵呵,我就知道你会把 NTFS 搬出来。是的,虽然在 NTFS 中不叫 FDT ,但也应该有个相似的概念,总有一个目录项先后排列的顺序。 现在这个无关紧要 ...