简体   繁体   English

您如何访问Windows命令行参数?

[英]How do you access Windows Command Line Arguments?

I have been doing some Windows Assembly Language programming lately and I realized that I don't know how to access the Command Line parameters. 最近,我一直在进行一些Windows汇编语言编程,但我意识到我不知道如何访问命令行参数。 I have searched online but I haven't found anything about it.(Perhaps I do not know how to phrase the question) Is Window's method of passing the parameters from the command line to the program the same as how Linux does it? 我已经在网上搜索过,但没有找到任何有关它的信息。(也许我不知道该如何表达问题)Window将命令行中的参数传递给程序的方法是否与Linux一样? What I mean by this is ebp initially set to point to argc? 我的意思是, ebp最初设置为指向argc吗?

Thanks 谢谢

GetCommandLine retrieves a pointer to the unparsed command-line. GetCommandLine检索指向未解析的命令行的指针。

CommandLineToArgvW parses the command-line into an array of arguments. CommandLineToArgvW将命令行解析为参数数组。 There isn't an ANSI version. 没有ANSI版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何获取 Windows 服务的命令行 arguments? - How do I get the command-line arguments of a Windows service? Windows程序:如何监听命令行参数? - Windows Program: How to snoop on command line arguments? 如何在 Windows 命令行中使用参数运行 Python 脚本 - How do I run Python script using arguments in windows command line 如何在 Windows/命令行/文件打开对话框下匹配确切的文件扩展名? - How do you match an exact file extension under Windows/command line/file open dialog? 如何在不复制的情况下从 Windows 命令行合并两个目录或移动替换? - How do you merge two directories, or move with replace, from the windows command line without copying? 如何获取正在运行的Windows Service应用程序的命令行参数? - How to get the command-line arguments of a running windows service application? 如何使用文件内容作为命令行参数 Windows - How to use file contents as command-line arguments Windows 如何基于命令行参数打开不同的窗口? - How to open different windows based on command line arguments? 如何通过php将参数传递给Windows命令行程序中的可执行文件? - How to pass arguments to executeable in windows command line program from php? 如何正确地将命令行参数传递给Windows应用程序? - How to pass command-line arguments to a Windows application correctly?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM