Overview
| Artifact ID: | 4db3097d92a12aaf66b5d533fbbb70d8b434fd91 |
|---|---|
| Ticket: | 224021ffffffffffffffffffffffffffffffffff
search path of exec command under C:\Program Files |
| User & Date: | nobody on 2000-12-01 10:17:17 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
#------------------------------------------------------------------------------ # File: exec_test.tcl #------------------------------------------------------------------------------ # simple test proc to show the behaviour of exec and its search path on windows NT # # 1. Copy the script to some directory e.g. C:\My Documents # add a program e.g. echo.exe # # 2: observe, that the function works as expected. All test cases are successful # # 3. copy the script and your program under c:\Program Files # # 4. see that the script fails in CASE1 and CASE2!! # ############################################################################### # define a program which is located in the same directory as this script set prog echo # show the console console show # make sure the search path is set set env(PATH) "$env(PATH);[pwd]" ##----------------------------------------------------------------------------- ## Begin: test case find the program through search path ##----------------------------------------------------------------------------- if {[catch {set out [exec $prog "CASE1: found the program"]} res]} { puts "CASE1: ERROR: $res" puts "ENV: $env(PATH)" } else { puts $out } if {[catch {set out [exec $prog.exe "CASE2: found the program"]} res]} { puts "CASE2: ERROR: $res" puts "ENV: $env(PATH)" } else { puts $out } if {[catch {set out [exec [pwd]/prog.exe "CASE3: found the program"]} res]} { puts "CASE3: ERROR: $res" } else { puts $out } - foundin changed to: "obsolete: 8.3"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "62. (unused)"
- title changed to:
search path of exec command under C:\Program Files
- type changed to: "Bug"