exec: Search order under Windows

From: Jan Harnisch (blackhole_at_fgb.mw.tum.de)
Date: 03/29/05


Date: Tue, 29 Mar 2005 21:16:39 +0200

Hi all,

when I call a external executable via the exec command under Windows,
exec does not simply follow the order in the PATH variable, but first
searches for the executable in other directories, e.g. the Windows
system directory [1].
Is there any simple and recommended way to change this behaviour, so
that Tcl first searches in the directories listed in PATH?
Greetings & TIA,

Jan

[1] as documented in the exec manpage:
When attempting to execute an application, exec first searches for the
name as it was specified. Then, in order, .com, .exe, and .bat are
appended to the end of the specified name and it searches for the longer
name. If a directory name was not specified as part of the application
name, the following directories are automatically searched in order when
attempting to locate the application:
The directory from which the Tcl executable was loaded.
The current directory.
The Windows 9x system directory.
The Windows 9x home directory.
The directories listed in the path.

-- 
My From: address is valid, but for email please use Reply To:
The Reply To: address is valid without modification.


Relevant Pages

  • Re: exec: Search order under Windows
    ... command first. ... > when I call a external executable via the exec command under Windows, ... > When attempting to execute an application, ...
    (comp.lang.tcl)
  • Re: Windows Services Groups
    ... Is the name of the Windows NT user or group. ... If the Windows NT user or group does not exist in SQL Server, ... Only members of the securityadmin or sysadmin fixed server roles can execute ... EXEC sp_denylogin 'Corporate\GeorgeW' ...
    (microsoft.public.sqlserver.security)
  • Re: Windows Services Groups
    ... Is the name of the Windows NT user or group. ... If the Windows NT user or group does not exist in SQL Server, ... Only members of the securityadmin or sysadmin fixed server roles can execute ... EXEC sp_denylogin 'Corporate\GeorgeW' ...
    (microsoft.public.sqlserver.security)
  • Re: exec/system wipes signal handler
    ... When you do an exec(), all of the code in memory ... new process image. ... array of pointers must be terminated by a NULL pointer. ... according to whether at least one file with suitable execute permissions ...
    (comp.lang.php)
  • Windows permissions was Re: Its COBOL, Jim, but not as we know it...
    ... Windows is highly configurable; the fact that people ignore this and run ... One of the problems is also figuring out what security features ... Microsoft email can automatically execute an attachment. ... Here's a transcript from a Linux forum 4 years ago where at least one user ...
    (comp.lang.cobol)

Quantcast