我一直在編寫一個應用程序,它需要在文件中擴展環境字符串。
爲此,我可以使用標準的Windows API函數,ExpandEnvironmentStrings: http://msdn.microsoft.com/en-us/library/ms724265(VS.85).aspx
我確實有與功能的一些問題,但。 第一: The size of the lpSrc and lpDst buffers is limited to 32K.
下一頁:Note that this function does not support all the features that Cmd.exe supports. For example, it does not support %variableName:str1=str2% or %variableName:~offset,length%.
我想實現這些額外的cmd.exe允許的,但我不知道他們是什麼。 :〜偏移量,長度有點明顯......子串。但不知道第一個是什麼。
任何想法?
Billy3
也就是說,搜索並替換:數字從結束的字符串的工作? – 2009-04-28 01:37:29