problems with running 32-bit tclsh on Windows x64



Hi!

On a MS Windows XP Pro. x64 (64-bit) Edition I installed ActiveState
ActiveTcl 8.4.14.0 (the 32-bit x86 distribution that is available as a
free download).

I noticed problems with invoking some system tools from the Tcl
scripts (which run in a 32-bit tclsh process). The problems are caused
by the way the WOW64 subsystem works in Windows x64. Namely,
the "%SystemRoot%\system32" directory is used for 64-bit DLLs and
EXEs, while
the "%SystemRoot%\SysWOW64" directory is used for 32-bit DLLs and
EXEs.
Some of the system files are present in both directories, i.e. they
have
64-bit and 32-bit versions, but some have only 64-bit version.

When executing 32-bit applications, the WOW64 subsystem makes files in
%SystemRoot%\system32 inaccessible to the application. The
application sees %SystemRoot%\sysWOW64 as %SystemRoot%\system32.

For example it is not possible to invoke ntbackup.exe from a Tcl
script as there is only 64-bit version of ntbackup.exe (in
%SystemRoot%\system32).

Is there a workaround for this problem besides copying the
inaccessible files from %SystemRoot%\system32 to another directory
that is accessible to 32-bit applications?

I hope some day the 64-bit binary distributions of the ActiveTcl
package will be available as a free download.

-- rpr. /Robert Premuz/

.



Relevant Pages

  • Fwd: Nmap/Mysql
    ... I'm doing it with python scripts, as a small project to help me learn ... python as well as learn more about nmap. ... Download FREE whitepaper on how a managed service can ...
    (Pen-Test)
  • Re: Anything to help download files ?
    ... At the minute I have a very poor way of doing this in TCL. ... it basically calls a UNIX shell script to do all the work. ... and so it will download the 201 files. ... but there is a pretty ok HTTP 1.0 client package ...
    (comp.lang.tcl)
  • Re: problems with apps communicating with each other (was Re: Whats TCL related to?)
    ... > Svenn Are Bjerkem wrote: ... this is not a tcl problem is it? ... Synopsys where Tcl/Tk is used as the command language. ... I use code-browser on windows to do tcl scripts. ...
    (comp.lang.tcl)
  • Re: executing a configure script from a tcl scrip
    ... I am having problem to launch the configure script from tcl. ... When working on windows I get the "can't find ... I never compiled Tcl on windows but I do know that configure scripts ... what program you run a Command Window will popup. ...
    (comp.lang.tcl)
  • Re: ANNOUNCE: Tcl/Tk 8.5.0 RELEASED
    ... The Tcl Core Team is pleased to announce the 8.5.0 releases of the Tcl ... Tcl/Tk 8.5.0 sources are freely available as open source from the Tcl ... A summary of the new features visible to Tcl scripts in the Tcl/Tk 8.5 ... Add a Command ...
    (comp.lang.tcl)