可以使用C#从Windows和命令行启动的应用程序 [英] Application that can start from Windows AND Command Line using C#

查看:124
本文介绍了可以使用C#从Windows和命令行启动的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法让1个应用程序可以从Windows启动(点击资源管理器窗口中的exe文件)和命令行?

Is there a way to have 1 application that can start from Windows (clicking on the exe file from the explorer window) and from the command line?

推荐答案

是。绝对任何应用程序都可以双向启动。此外,即使您从命令行启动任何内容,它仍然从Windows启动。没有任何区别。 Explorer只是其中一个应用程序,与其他应用程序没有什么不同。可以对任何应用程序进行编程,以与Explorer,CMD.EXE或其他任何方式完全相同的方式启动新进程。这些是100%等效的方式。



看起来你尚未准备好进行编程。首先,您需要学习如何将计算机用作普通用户。我是认真的。你还不太了解它,请以用户身份获得更多知识。



-SA
Yes. Absolutely any application can be started both ways. Besides, even if you start anything from command line, it is still started "from Windows". There is no any difference. Explorer is just one of the applications, no different from other. Any application can be programmed to start a new process in exact same way as Explorer, CMD.EXE or anything else. Those are 100% equivalent ways.

It looks like you are not ready for programming, just yet. First, you need to learn how to use a computer as a plain user. I''m serious. You don''t know enough about it yet, please get some more knowledge as a user.

—SA


这篇关于可以使用C#从Windows和命令行启动的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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