如何打开“查找文件"?从 Windows XP 中的命令行对话框搜索特定文件夹? [英] How do I open "Find Files" dialog from command-line in Windows XP to search a specific folder?

查看:32
本文介绍了如何打开“查找文件"?从 Windows XP 中的命令行对话框搜索特定文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个热键来在 Windows XP 中搜索特定文件夹下的文件;我正在使用 AutoHotkey 创建此快捷方式.

I'd like to create a hotkey to search for files under a specific folder in Windows XP; I'm using AutoHotkey to create this shortcut.

问题是我需要知道要运行的命令行语句才能打开标准的 Windows查找文件/文件夹"对话框.我已经用谷歌搜索了一段时间,但没有找到任何说明如何执行此操作的页面.

Problem is that I need to know a command-line statement to run in order to open the standard Windows "Find Files/Folders" dialog. I've googled for a while and haven't found any page indicating how to do this.

我假设如果我知道用于显示此提示的命令行语句,它将允许我传入一个参数,用于我想在哪个文件夹下进行搜索.我知道您可以通过右键单击 XP 中的文件夹来执行此操作,因此我假设有某种方法可以在命令行上执行此操作...?

I'm assuming that if I know the command-line statement for bringing up this prompt, it will allow me to pass in a parameter for what folder I want to be searching under. I know you can do this by right-clicking on a folder in XP, so I assume there's some way I could do it on the command line...?

推荐答案

来自 http://www.pcreview.co.uk/forums/thread-1468270.php

@echo off
echo CreateObject("Shell.Application").FindFiles >%temp%\myff.vbs
cscript.exe //Nologo %temp%\myff.vbs
del %temp%\myff.vbs

这篇关于如何打开“查找文件"?从 Windows XP 中的命令行对话框搜索特定文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆