我一直在编写一个应用程序,它需要在文件中扩展环境字符串。
为此,我可以使用标准的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