Menu

#5110 wish widget linked to exec start hangs on windowsxp

open
5
2012-09-11
2012-09-11
Nagaraj
No

Dear Experts,

I am using wish for GUI with a widget named "open directory" and linked to command to open the directory, the code is as below .

button .b1 -text "Open Config File Directory " -command openconfigfiledir
grid .b1 -in . -row 1 -column 0 -sticky ew -padx 5 -pady 5

proc openconfigfiledir {} {
set folderpath "c:\test"
eval exec [auto_execok explorer] {"$folderpath"}
}

It works fine in windows 7 but the same on Windows XP hangs. When I kill the program the folder opens. I am novoice in TCL any help is appreciated.
Thanks, Nagaraj.

Discussion