View Single Post
  #146 (permalink)  
Old 07-21-2007, 03:46 PM
Kolano's Avatar
Kolano
Regular 'Geeker
Offline
Threadstarter
 
Join Date: May 2007
Posts: 422
Reputation: 71
Kolano is becoming a great contributor
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quote:
Originally Posted by luv2chill
Quote:
Originally Posted by Kolano
Quote:
Originally Posted by luv2chill
I spent a lot of time trying to figure out how to automatically clear that "memorized" path to help prevent this problem but never was able to do it. I found the reg entries where it seems the path is stored but deleting them from the registry didn't seem to affect the HTC64 Tool's ability to remember the last place it opened a prj file from.

If anyone can figure out an easy way to clear that memorized path it would make things easier for the noobs.
Would setting it to the appropriate path rather than clearing it work (not sure there is an easy way to do that)?
Nope I don't believe it can be set to the "correct" path because it can't be specified relative to the exe--it must be an absolute path, which would be different on every person's PC. I keep mine on the root of D:, while others keep theirs on their desktop, etc.

So "clearing" the path to always take you to "My Documents" or something like that would ensure that everyone had to re-navigate to the correct kitchen folder first.
Right. You'd need something to read the current path, set the reg appropriately, and then launch HTC64_Extended_ROM_Tool.exe.

Code:
Examples:

  REG ADD \\ABC\HKLM\Software\MyCo
    Adds a key HKLM\Software\MyCo on remote machine ABC

  REG ADD HKLM\Software\MyCo /v Data /t REG_BINARY /d fe340ead
    Adds a value (name: Data, type: REG_BINARY, data: fe340ead)

  REG ADD HKLM\Software\MyCo /v MRU /t REG_MULTI_SZ /d fax\0mail
    Adds a value (name: MRU, type: REG_MUTLI_SZ, data: fax\0mail\0\0)

  REG ADD HKLM\Software\MyCo /v Path /t REG_EXPAND_SZ /d %%systemroot%%
    Adds a value (name: Path, type: REG_EXPAND_SZ, data: %systemroot%)
    Notice:  Use the double percentage ( %% ) inside the expand string
Reply With Quote