- May
- 13,740
- 209
I have a BTM which will start DEVENV with the most recently used .SLN file as an argument (avoiding the pick_a_project dialog). AFAIK, that info is only recorded in a file named "ApplicationPrivateSettings.xml", buried deep in the %APPDATA folder. I can get the file name with FFIND (or WHERE.EXE). After that I must find the first occurrence of the string "FullPath" in the file. I can do that with @FILEREAD (et al.) but searching about 10,000 bytes into the file is rather slow (about 3 seconds). For now I use SED.EXE to change "FullPath" to "NullPath" and send the output to a temp file ... then use CMP.EXE on the original file and the temp file and pick the offset out of CMP's output. That's pretty fast. But I'd like a more direct way to get the offset. Can anyone suggest another way, built-in or otherwise?
I've tried the @XML* functions without success. That may be because of my almost non-existent knowledge of XML. Looking at the file is difficult because its 44K bytes are all on one line? Is there a Windows (or free 3rd party) tool to make looking at the file easier? If anyone wants to try the @XML functions, I can post the file.
Thanks!
I've tried the @XML* functions without success. That may be because of my almost non-existent knowledge of XML. Looking at the file is difficult because its 44K bytes are all on one line? Is there a Windows (or free 3rd party) tool to make looking at the file easier? If anyone wants to try the @XML functions, I can post the file.
Thanks!