我将如何向控制台应用程序添加参数? [英] How would I go about adding parameters to a console application?

查看:71
本文介绍了我将如何向控制台应用程序添加参数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将参数添加到控制台应用程序?因此,如果我从命令提示符运行以下命令:(text.exe -j),它将使用该参数运行应用程序.

How would I go about adding parameters to a console application? So if I ran it from command prompt with this: (text.exe -j) it would run the app with that parameter. How would I go about doing that?

推荐答案

有一个 ^ ]在CP上告诉您如何精确执行操作.

祝你好运!
There''s an article[^] here at CP that tells you how exactly to do it.

Goodluck!


请考虑使用我的命令行实用程序;它非常健壮但易于使用,并且可以自动进行参数声明,甚至可以对它们进行记录:
基于枚举的命令行实用程序 [
Please consider using my Command Line utility; it is very robust yet easy to use and automates declaration of parameters and even documenting them:
Enumeration-based Command Line Utility[^].

The article also accurately explains how it works in case you want to do all by yourself.

—SA


这篇关于我将如何向控制台应用程序添加参数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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