微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

search命令提示符参数?

无论如何要search一般意义上的命令提示符参数。 还是我们要把这些程序的文件作为人质呢? 例如,在命令提示符下,我键入资源pipe理器或记事本…但如果我把第一个参数作为文件path,它将打开该文件path为我…我怎么知道这个参数input存在,也许有我不知道的一堆其他参数字段。 有没有系统地search程序参数?

捕获输出命令CMD

Intellij stdin重build

在“if”块中设置variables

重命名文件模式窗口批处理

从cmd运行PHP:相对path问题

在Windows中,程序负责处理他们自己的命令行参数,他们可以以任何他们喜欢的方式来执行。 (通常将标记化处理交给C运行时库,但不是必需的。)

这给了程序员最大的灵活性,但是的确意味着,如果程序员没有记录命令行,事后就没有直接的方法对其进行反向工程。

(UNIX并没有太大的不同;标记化是由shell来处理的,但其余的处理是应用程序的责任;而在VMS中,相比之下,整个命令行处理由shell来处理,基于语法信息必须嵌入到应用程序中。)

对于应用程序来说,提供命令行语法摘要以响应以下一个或多个选项是常规的:

application /? application -? application /help application -help application --? application --help

(从大多数常见到最不常见的安排;具有两个连字符的变体通常只能在从UNIX移植过来的软件中找到)。

我没有找到实际的统计数据,但我的印象是,大多数命令行应用程序(也许80%或更多)提供了这样一个总结。 GUI应用程序不太常见。

如果不这样做,有时候可以通过查找可执行文件中的字符串来查找命令行选项。 微软提供了一个实用工具,可以从他们的网站下载strings.exe 。 (当然,知道一个可能的命令行选项的存在并不一定意味着你将能够找出它的功能!)

如果你有权访问源代码,或擅长反汇编,如果你足够绝望,这可能提供另一种选择。

不可以。尽管你总是可以试试programname /? 。

记事本只需要一个文件名或者采用/p filename …(你可以在注册表中的txtfiles打印条目中看到该命令)。

这是从Windows 98 Explorer的东西,它仍然是一样的。

Explorer explorer [/n] [/e][,/root,object][[,/select],subobject] None Explorer rooted at the Desktop /n Opens a new window. /e Explorer View (default if nothing else is on the command line.) /root,object Starts Explorer with object the top item (normally Desktop is the top item). Eg: explorer /e,c:Starts Explorer with the C drive as the only drive available. /select,subobject Selects the specified subobject. Replaceable parameters are %1 (one) which is the short file or folder name and %l (L) which is the long file name. /IDLIST This is an additional parameter that means a Windows internal structure is being passed. eg: Explorer.exe /e,/idlist,%I The %I is a replacable parameter representing an IDLIST. Rooted Views To open an explorer item that starts with a special folder as the top folder use the following Syntax. Where the special folder is a sub folder of the desktop explorer /e,root,::{CLSID of special folder} Where the special folder is a sub folder of another special folder (usually,if not always My Computer) explorer /e,::{CLSID of parent}/::{CLSID of special folder} Where the special folder is part of the file system explorer /e,path to folder See Namespaces on the Icons Page for a list of CLSIDs for special folders. Examples Note that /select is inconsistent. Sometime the / is required,sometimes it should be left out,and sometimes it doesn't matter. Starts explorer with the Windows folder opened and selected. explorer /e,select,c:windows Starts explorer with Windows the top level folder and command opened and selected. explorer /e,c:windows,c:windowscommand Starts explorer with Windows the top level folder and Tips.txt showing instead of the file listing. explorer /e,c:windowstips.txt Starts explorer with My Computer the top level folder and all branches except for drives collapsed. explorer /e,::{20d04fe0-3aea-1069-a2d8-08002b30309d} Starts explorer with C: the top level folder. explorer /e,c: Starts the Dial Up Networking folder in folder view. explorer.exe ::{20d04fe0-3aea-1069-a2d8-08002b30309d}::{992cffa0-f557-101a-88ec-00dd010ccc48}

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐