现在的位置: 首页 > 综合 > 正文

[tip: commandline argument]Environment.GetCommandLineArgs

2012年05月30日 ⁄ 综合 ⁄ 共 374字 ⁄ 字号 评论关闭

MSDN

Returns a string array containing the command-line arguments for the current process.

 

Input at the command line

Resulting command line arguments

MyApp alpha beta

MyApp, alpha, beta

MyApp "alpha with spaces" "beta with spaces"

MyApp, alpha with spaces, beta with spaces

MyApp 'alpha with spaces' beta

MyApp, 'alpha, with, spaces', beta

MyApp \\\alpha \\\\"beta

MyApp, \\\alpha, \\bet

MyApp \\\\\"alpha \"beta

MyApp, \\"alpha, "beta

 

抱歉!评论已关闭.