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!
Credits 6,962 Posts 2,753 Joined 2003-04-16 00:00 23-year member UID 1565 Gender Male From 河北保定
Status Offline
Originally posted by qzwqzw at 2008-6-25 21:55:
Can consider not using strings respectively
Use respectively
dir /s/b %0
and
for %%p in (%path%) do dir /b %%p.\%0
Detect
Most cases where the batch processing is located in the path can be obtained
As for if the standard output ...
The special case we discussed above is that the batch processing is neither in the search path nor on the current disk. Your solution just can't solve all these special cases.