Closed. This question is off-topic。它当前不接受答案。












想改善这个问题吗? Update the question,所以它是用于堆栈溢出的on-topic

已关闭8年。



Improve this question




命令“where”适用于Windows 2003 Server和更高版本。
如何执行Windows XP中提供的相同功能。

有类似的命令吗?

最佳答案

您可以使用XP在XP上获得相同的结果

dir /b /s C:\yourfile.txt

显然将C:\更改为要搜索的驱动器。

如果要搜索1个以上的驱动器,则可以对其进行循环搜索
for %%a in (C: D: E:) do (
dir /b /s %%a\yourfile.txt
)

这可能不适用于网络驱动器,但是这种轻微的修改应该
for %%a in (X: Y: Z:) do (
pushd %%a
dir /b /s yourfile.txt
popd
)

关于windows - Windows XP中的 “where arg”命令? ,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/14624839/

10-11 22:16
查看更多