Environment.GetCommandLineArgs();
2009-12-30 18:54
429 查看
在console app中,并不是一定非要Main中获取command args,
也可以通过 Environment.GetCommandLineArgs();在其他方法中获取command args.
public static void Main(string [] args)
{
......
Test();
....
}
private Test()
{
......
Environment.GetCommandLineArgs();
......
}
也可以通过 Environment.GetCommandLineArgs();在其他方法中获取command args.
public static void Main(string [] args)
{
......
Test();
....
}
private Test()
{
......
Environment.GetCommandLineArgs();
......
}
相关文章推荐
- Environment.GetCommandLineArgs 方法
- Environment.GetCommandLineArgs 方法
- C# 使用 Environment.GetCommandLineArgs 方法 制作*.exe和参数 供其他程序调用
- [tip: commandline argument]Environment.GetCommandLineArgs
- C# 使用 Environment.GetCommandLineArgs 方法 制作*.exe和参数 供其他程序调用
- 转载 C#文件中GetCommandLineArgs()
- Powreshell.exe to get full commandline of a specified process
- c++ ---------命令行获得和转换文件CommandLineToArgvW和GetCommandLineW()的使用
- [转]Environment.CommandLine
- GetCommandLine 分析
- How can I get my public IP address from the command line, if I am behind a router?
- How do I get a MAC address via command line?
- HOWTO: Get the command line of a process(转)
- 在初始对话框中利用函数GetCommandLineW获取MFC程序的命令行参数
- /var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh: line 19: mysql: command not found
- The linux command line--part Two Configuration And The Environment
- C#中如何获取其他进程的命令行参数 ( How to get other processes's command line argument )
- GetCommandLine [API]
- Exception in thread "main" java.lang.NoSuchMethodError: org.testng.TestNG.configure(Lorg/testng/CommandLineArgs;)V