What''s happening here? ruby 1.9.3p125 (2012-02-16 revision 34643) [i386-mswin32_100] windows home premium c:\>echo %ProgramFiles% C:\Program Files c:\>irb irb(main):001:0> ENV[''ProgramFiles''] => "C:\\Program Files (x86)" c:\>set Program ProgramData=C:\ProgramData ProgramFiles=C:\Program Files ProgramFiles(x86)=C:\Program Files (x86) ProgramW6432=C:\Program Files Regards, Dan
What happens there is wow64 Running a 32bits process on a 64bits os. Sorry for top posting. Sent from mobile. On Mar 30, 2012 9:36 PM, "Daniel Berger" <djberg96 at gmail.com> wrote:> What''s happening here? > > ruby 1.9.3p125 (2012-02-16 revision 34643) [i386-mswin32_100] > windows home premium > > c:\>echo %ProgramFiles% > C:\Program Files > > c:\>irb > irb(main):001:0> ENV[''ProgramFiles''] > => "C:\\Program Files (x86)" > > c:\>set Program > ProgramData=C:\ProgramData > ProgramFiles=C:\Program Files > ProgramFiles(x86)=C:\Program Files (x86) > ProgramW6432=C:\Program Files > > Regards, > > Dan > _______________________________________________ > win32utils-devel mailing list > win32utils-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/win32utils-devel >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/win32utils-devel/attachments/20120330/3f7abc23/attachment.html>
That''s right, thanks. Forgot about that. Dan On Fri, Mar 30, 2012 at 6:42 PM, Luis Lavena <luislavena at gmail.com> wrote:> What happens there is wow64 > > Running a 32bits process on a 64bits os. > > Sorry for top posting. Sent from mobile. > > On Mar 30, 2012 9:36 PM, "Daniel Berger" <djberg96 at gmail.com> wrote: >> >> What''s happening here? >> >> ruby 1.9.3p125 (2012-02-16 revision 34643) [i386-mswin32_100] >> windows home premium >> >> c:\>echo %ProgramFiles% >> C:\Program Files >> >> c:\>irb >> irb(main):001:0> ENV[''ProgramFiles''] >> => "C:\\Program Files (x86)" >> >> c:\>set Program >> ProgramData=C:\ProgramData >> ProgramFiles=C:\Program Files >> ProgramFiles(x86)=C:\Program Files (x86) >> ProgramW6432=C:\Program Files >> >> Regards, >> >> Dan >> _______________________________________________ >> win32utils-devel mailing list >> win32utils-devel at rubyforge.org >> http://rubyforge.org/mailman/listinfo/win32utils-devel > > > _______________________________________________ > win32utils-devel mailing list > win32utils-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/win32utils-devel
Hi, 2012/3/31 Daniel Berger <djberg96 at gmail.com>> That''s right, thanks. Forgot about that. > > Dan > > On Fri, Mar 30, 2012 at 6:42 PM, Luis Lavena <luislavena at gmail.com> wrote: > > What happens there is wow64 > > > > Running a 32bits process on a 64bits os. > > > > Sorry for top posting. Sent from mobile. > > > > On Mar 30, 2012 9:36 PM, "Daniel Berger" <djberg96 at gmail.com> wrote: > >> > >> What''s happening here? > >> > >> ruby 1.9.3p125 (2012-02-16 revision 34643) [i386-mswin32_100] > >> windows home premium > >> > >> c:\>echo %ProgramFiles% > >> C:\Program Files > >> > >> c:\>irb > >> irb(main):001:0> ENV[''ProgramFiles''] > >> => "C:\\Program Files (x86)" > >> > >> c:\>set Program > >> ProgramData=C:\ProgramData > >> ProgramFiles=C:\Program Files > >> ProgramFiles(x86)=C:\Program Files (x86) > >> ProgramW6432=C:\Program Files > >> > >> Regards, > >> > >> Dan >It reminds me of when I found some inconsistency between command prompt and 32bit ruby about system32 folder. Here is an example. Ruby tells the size of ''c:/windows/system32/notepad.exe'' is 179712 C:\Users\phasis>irb irb(main):001:0> File.size(''c:/windows/system32/notepad.exe'') => 179712 But, Windows tells the size of ''c:/windows/system32/notepad.exe'' is 193536 C:\>dir windows\system32\notepad.exe Volume in drive C is Windows 7 Volume Serial Number is 700B-966B Directory of C:\windows\system32 2009-07-14 AM 10:39 193,536 notepad.exe 1 File(s) 193,536 bytes 0 Dir(s) 156,550,344,704 bytes free I found, for 32bit application, C:/windows/syswow64 maps to C:/windows/system32. C:\>dir windows\syswow64\notepad.exe Volume in drive C is Windows 7 Volume Serial Number is 700B-966B Directory of C:\windows\syswow64 2009-07-14 AM 10:14 179,712 notepad.exe 1 File(s) 179,712 bytes 0 Dir(s) 156,550,279,168 bytes free Regards, Park Heesob -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/win32utils-devel/attachments/20120331/5dc7a30d/attachment.html>
That is caused by wow64 and virtual storage that maps system32 differently. Sorry for top posting. Sent from mobile. On Mar 30, 2012 11:25 PM, "Heesob Park" <phasis at gmail.com> wrote:> Hi, > > 2012/3/31 Daniel Berger <djberg96 at gmail.com> > >> That''s right, thanks. Forgot about that. >> >> Dan >> >> On Fri, Mar 30, 2012 at 6:42 PM, Luis Lavena <luislavena at gmail.com> >> wrote: >> > What happens there is wow64 >> > >> > Running a 32bits process on a 64bits os. >> > >> > Sorry for top posting. Sent from mobile. >> > >> > On Mar 30, 2012 9:36 PM, "Daniel Berger" <djberg96 at gmail.com> wrote: >> >> >> >> What''s happening here? >> >> >> >> ruby 1.9.3p125 (2012-02-16 revision 34643) [i386-mswin32_100] >> >> windows home premium >> >> >> >> c:\>echo %ProgramFiles% >> >> C:\Program Files >> >> >> >> c:\>irb >> >> irb(main):001:0> ENV[''ProgramFiles''] >> >> => "C:\\Program Files (x86)" >> >> >> >> c:\>set Program >> >> ProgramData=C:\ProgramData >> >> ProgramFiles=C:\Program Files >> >> ProgramFiles(x86)=C:\Program Files (x86) >> >> ProgramW6432=C:\Program Files >> >> >> >> Regards, >> >> >> >> Dan >> > > It reminds me of when I found some inconsistency between command prompt > and 32bit ruby about system32 folder. > > Here is an example. > > Ruby tells the size of ''c:/windows/system32/notepad.exe'' is 179712 > C:\Users\phasis>irb > irb(main):001:0> File.size(''c:/windows/system32/notepad.exe'') > => 179712 > > But, Windows tells the size of ''c:/windows/system32/notepad.exe'' is 193536 > > C:\>dir windows\system32\notepad.exe > Volume in drive C is Windows 7 > Volume Serial Number is 700B-966B > > Directory of C:\windows\system32 > > 2009-07-14 AM 10:39 193,536 notepad.exe > 1 File(s) 193,536 bytes > 0 Dir(s) 156,550,344,704 bytes free > > I found, for 32bit application, C:/windows/syswow64 maps > to C:/windows/system32. > C:\>dir windows\syswow64\notepad.exe > Volume in drive C is Windows 7 > Volume Serial Number is 700B-966B > > Directory of C:\windows\syswow64 > > 2009-07-14 AM 10:14 179,712 notepad.exe > 1 File(s) 179,712 bytes > 0 Dir(s) 156,550,279,168 bytes free > > Regards, > > Park Heesob > > > _______________________________________________ > win32utils-devel mailing list > win32utils-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/win32utils-devel >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/win32utils-devel/attachments/20120330/66b150f6/attachment.html>