title: How to get and set Windows Explorer view settings
body: <p>I'm trying to make a script cycle views in Windows Explorer (Windows 7 libraries don't allow remembering view settings per folder). </p>
  
  <p>I found <code>postMessage</code> with the <code>WM_COMMAND</code> message (code <code>0x111</code>), but can't seem to use it to affect the Explorer view. Nothing happens when I send:</p>
  
  <pre><code>PostMessage,0x111,0x702c,0,,ahk_id %parent%
  </code></pre>
  
  <p>where <code>%parent%</code> is the handle of the window. Examples on the forums are for Windows XP, which seems to work differently. How to get and set the view setting?</p>