{"id":4204,"date":"2018-06-29T23:09:01","date_gmt":"2018-06-30T03:09:01","guid":{"rendered":"http:\/\/www.paleotechnologist.net\/?p=4204"},"modified":"2018-06-29T23:10:38","modified_gmt":"2018-06-30T03:10:38","slug":"virtual-confusion","status":"publish","type":"post","link":"https:\/\/www.paleotechnologist.net\/?p=4204","title":{"rendered":"Virtual Confusion"},"content":{"rendered":"<p>Okay, I get it. <a href=\"https:\/\/www.freepcb.com\/\" target=\"_blank\" rel=\"noopener\">FreePCB<\/a> is kind of dated and I should really learn <a href=\"https:\/\/www.autodesk.com\/products\/eagle\/overview\" target=\"_blank\" rel=\"noopener\">Eagle<\/a> at some point. But it&#8217;s still a useful tool &#8212; at least, when Windows doesn&#8217;t get in its way.<\/p>\n<p>FreePCB, unfortunately, defaults to storing project files in a &#8220;projects&#8221; folder in its own working directory. This makes some sense, but ultimately documents are supposed to be stored in the proper place &#8212; not where the program is installed.<\/p>\n<p>I agree this is best practice &#8212; but Windows (since Vista) takes things a step farther, as I found out today. If a 32-bit program is not running with administrator privileges and isn&#8217;t compiled for Vista or later, that means it can get &#8220;virtualized.&#8221;<\/p>\n<p>What this means, in practical terms, is that, since Windows no longer allows programs to write to the &#8220;Program Files (x86)&#8221; directory structure, it makes a shadow copy of this structure and redirects all writes to that.<\/p>\n<p>The problem arises when you want to, for example, go find these files that the program has written. They&#8217;re nowhere to be found in the\u00a0&#8220;Program Files (x86)&#8221; structure &#8212; and yet, the program can exit, relaunch, and reload the files with no problem at all.\u00a0<em>Witchcraft!<\/em><\/p>\n<p>Figuring that the files had to be somewhere on the drive, I went back to first principles and ran a search.<\/p>\n<p>c:\\&gt;<strong>dir \/s \/b *.fpc<\/strong><\/p>\n<p>After a brief search, the files were found in the c:\\Users\\&#8230;\\local\\VirtualStore\\ substructure. A quick Google search turned up the <a href=\"https:\/\/answers.microsoft.com\/en-us\/windows\/forum\/windows_7-windows_programs\/please-explain-virtualstore-for-non-experts\/d8912f80-b275-48d7-9ff3-9e9878954227\" target=\"_blank\" rel=\"noopener\">following explanation<\/a>, paraphrased above.<\/p>\n<p>Mystery solved. But some notice would have been appreciated, MS. Maybe one of those pop-up boxes you&#8217;re so fond of using to steal the focus at the worst possible times. Or something.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In which I learn that Windows doesn&#8217;t always store files where you ask it to. <a href=\"https:\/\/www.paleotechnologist.net\/?p=4204\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"footnotes":""},"categories":[214],"tags":[],"class_list":["post-4204","post","type-post","status-publish","format-standard","hentry","category-sysadmin"],"_links":{"self":[{"href":"https:\/\/www.paleotechnologist.net\/index.php?rest_route=\/wp\/v2\/posts\/4204","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.paleotechnologist.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.paleotechnologist.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.paleotechnologist.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.paleotechnologist.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4204"}],"version-history":[{"count":3,"href":"https:\/\/www.paleotechnologist.net\/index.php?rest_route=\/wp\/v2\/posts\/4204\/revisions"}],"predecessor-version":[{"id":4207,"href":"https:\/\/www.paleotechnologist.net\/index.php?rest_route=\/wp\/v2\/posts\/4204\/revisions\/4207"}],"wp:attachment":[{"href":"https:\/\/www.paleotechnologist.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.paleotechnologist.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4204"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.paleotechnologist.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}