{"id":1177,"date":"2015-03-04T10:42:35","date_gmt":"2015-03-04T13:42:35","guid":{"rendered":"http:\/\/www.franklinjr.com\/blog\/?p=1177"},"modified":"2015-03-04T10:42:35","modified_gmt":"2015-03-04T13:42:35","slug":"syswow64-system32-sysnative","status":"publish","type":"post","link":"https:\/\/www.franklinjr.com\/blog\/index.php\/2015\/03\/04\/syswow64-system32-sysnative\/","title":{"rendered":"SysWoW64 System32 Sysnative"},"content":{"rendered":"<p>Estava fazendo um script em php para limpar o diret\u00f3rio\u00a0C:\\WINDOWS\\System32\\inetsrv\\backup de tempos em tempos, mas meu script informava que o diret\u00f3rio n\u00e3o existia, e ele estava l\u00e1, conseguia ver no explorer.<\/p>\n<p>Resumindo, a m\u00e1quina que eu estava fazendo isso era em 64bits, isso aconteceu porque o php do servidor rodava em 32bits, pesquisando descobri que uma aplica\u00e7\u00e3o 32bits quando acessa o diret\u00f3rio\u00a0C:\\WINDOWS\\System32 \u00e9 redirecionada para o diret\u00f3rio\u00a0C:\\WINDOWS\\SysWoW64, e o diret\u00f3rio\u00a0C:\\WINDOWS\\SysWoW64\\inetsrv\\backup realmente n\u00e3o exisita.<\/p>\n<p>Como fiz para contornar a situa\u00e7\u00e3o? Com o tempo aprendi que a Microsoft adora gambiarra, diria at\u00e9 que ama. Para que o script funcionasse, precisei utilizar o path\u00a0C:\\WINDOWS\\<span style=\"color: #ff0000;\"><strong>sysnative<\/strong><\/span>\\inetsrv\\backup.<\/p>\n<p>Aplica\u00e7\u00f5es em 32bits para acessar o diret\u00f3rio system32, precisam usar o path sysnative, mas se tu for no explorer e tentar acessar o c:\\windows\\sysnative, tu n\u00e3o vai conseguir, porque o diret\u00f3rio n\u00e3o \u00e9 acess\u00edvel em aplica\u00e7\u00f5es 64bits, somente 32bits :D.<\/p>\n<p>Link da explica\u00e7\u00e3o detalhada:\u00a0<a title=\"Explica\u00e7\u00e3o\" href=\"http:\/\/comments.gmane.org\/gmane.os.cygwin\/148335\" target=\"_blank\">http:\/\/comments.gmane.org\/gmane.os.cygwin\/148335<\/a><br \/>\nLink da microsoft sobre o File System Redirector:\u00a0<a title=\"Explica\u00e7\u00e3o da microsoft\" href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/windows\/desktop\/aa384187(v=vs.85).aspx\" target=\"_blank\">https:\/\/msdn.microsoft.com\/en-us\/library\/windows\/desktop\/aa384187(v=vs.85).aspx<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Estava fazendo um script em php para limpar o diret\u00f3rio\u00a0C:\\WINDOWS\\System32\\inetsrv\\backup de tempos em tempos, mas meu script informava que o diret\u00f3rio n\u00e3o existia, e ele estava l\u00e1, conseguia ver no explorer. Resumindo, a m\u00e1quina que eu estava fazendo isso era em 64bits, isso aconteceu porque o php do servidor rodava em 32bits, pesquisando descobri que [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[51],"tags":[],"class_list":["post-1177","post","type-post","status-publish","format-standard","hentry","category-windows"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\r\n<title>SysWoW64 System32 Sysnative - Franklin Jr.<\/title>\r\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/www.franklinjr.com\/blog\/index.php\/2015\/03\/04\/syswow64-system32-sysnative\/\" \/>\r\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.franklinjr.com\\\/blog\\\/index.php\\\/2015\\\/03\\\/04\\\/syswow64-system32-sysnative\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\\\/\\\/www.franklinjr.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SysWoW64 System32 Sysnative\"}]}]}<\/script>\r\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SysWoW64 System32 Sysnative - Franklin Jr.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.franklinjr.com\/blog\/index.php\/2015\/03\/04\/syswow64-system32-sysnative\/","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/www.franklinjr.com\/blog\/index.php\/2015\/03\/04\/syswow64-system32-sysnative\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/www.franklinjr.com\/blog\/"},{"@type":"ListItem","position":2,"name":"SysWoW64 System32 Sysnative"}]}]}},"_links":{"self":[{"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1177","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=1177"}],"version-history":[{"count":1,"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1177\/revisions"}],"predecessor-version":[{"id":1179,"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1177\/revisions\/1179"}],"wp:attachment":[{"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=1177"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=1177"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.franklinjr.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=1177"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}