Hello all :)
I've been writing an application which will need to expand environment strings in a file.
To that effect, I could use the standard windows API function, ExpandEnvironmentStrings: http://msdn.microsoft.com/en-us/library/ms724265(VS.85).aspx
I do have a few problems with that function though.
First:
The size of the lpSrc and lpDst buffers is limited to 32K.
Next: 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%.
I would like to implement these extras cmd.exe allows, but I'm not sure exactly what they are. :~offset,length is a bit odvious ... substring. But not sure what the first one is.
Any ideas?
Billy3