WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

64-bit

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

32 Bit WinBatch on 64 Bit Systems

 Keywords: 32 64 Bit WinBatch32-Bit 64-Bit Systems Windows Registry Virtualization Registry Redirection File Redirection WOW6432node

Keep in mind that you can still run 32-bit version of WinBatch scripts on 64-bit platforms. It simply requires that the 32-bit subsystem is installed ( which it is by default on most Windows systems ).

File Redirection

WinBatch is a 32 bit application. When it is run a 64 bit Windows platform the Windows file system auto-magically redirects file operations that refer to 64 bit directories to the 32 bit equivalents. For example, the %windir%\System32 directory is reserved for 64-bit applications. Since most System DLL file names were not changed when porting to 64-bit, 32-bit applications must use a different directory as their System32 directory. WOW64 hides this difference using file system redirection. Whenever a 32-bit application,like WinBatch, attempts to access %windir%\System32, the access is redirected to a new directory, %windir%\SysWOW64. IntControl 92 can be used to disable this functionality.

Reference: http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/64-bit+File~Redirection.txt

Registry Virtualization/Registry Redirection

To prevent 32-bit registry settings from overwriting the 64-bit registry settings, computers that are running an x64-based version of Windows store the settings for 32-bit programs in a new branch in the registry.

2 simple rules to accessing the registry on 64-bit systems:

  1. NEVER directly access keys stored under WOW6432node.
  2. If you do want access something under WOW6432node, just set the registry view to 32-bit using RegOpenFlags(32) and specify the key/value without using 'WOW6432node' in the registry path. (In other words use it 's regular 32-bit key/value.)
Reference: http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/64-bit+Registry~Redirection.txt
Article ID:   W17641
Filename:   32 Bit WinBatch on 64 Bit Systems.txt
File Created: 2014:07:18:09:50:32
Last Updated: 2014:07:18:09:50:32