[英]How can I change two items in one string via Windows command prompt and C#
[英]what is the Max length of input I can provide to a C# program via command prompt?
我正在嘗試編寫一個簡單的命令提示程序,它將從使用命令提示符中獲取輸入。 樣本輸入是:
"InsertLicenseHeader /hf "f:\Repository\WNJavaSourceFileHeader_V1.2.txt" /regexp "^((\r)?\n)?\/\*.+(\(C\)opyright|Copyright \(c\)) ([0-9]{4}-)?[0-9]{4} (by )?Wincor Nixdorf.+This software is the confidential and proprietary information.+terms of the license agreement.+$" /dir "c:\folder with my java project" /ext java /backup 1 /log ".\protocol.log""
但是,我無法輸入
"InsertLicenseHeader /hf "f:\Repository\WNJavaSourceFileHeader_V1.2.txt" /regexp "^((\r)?\n)?\/\*.+(\(C\)opyright|Copyright \(c\)) ([0-9]{4}-)?[0-9]{4} (by )?Wincor Nixdorf.+This software is the confidential and proprietary information.+terms of the licens"
是否指定了通過命令提示符輸入時不應超過的最大字符數?
注意:我使用的是VS2012
鑒於MSDN博客 :
在命令提示符中,在命令提示符下使用的以下命令行的總長度不能超過2047或8191個字符(根據您的操作系統而定)
您的字符串是257字符長,這是限制正在進行中。 我會去其他地方挖...
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.