Hello all:
I got some problem as following, could anyone help me to solve the problem.Thanks.
How can I create and delete a directory in my desire path and open a folder in my desire path. And how can I check a directory whether exist or not .
I am using linux for my application now.
For example, I want to create a directory called newFolder and put it into path of
./home, so when I use the command of the
"set filename [tk_getOpenFile -defaultextension tcl -initialdir /home/newFolder ]",
it will bring out to me a dialog box which just contains a directory of the newFolder.
when I click a right mouse, I can delete a folder from the dialog box.
I known a command can create a directory as following, but it can not create a directory in my
desire path.
set newdir ?whatever?
exec mkdir $newdir
rgds
stewang
I got some problem as following, could anyone help me to solve the problem.Thanks.
How can I create and delete a directory in my desire path and open a folder in my desire path. And how can I check a directory whether exist or not .
I am using linux for my application now.
For example, I want to create a directory called newFolder and put it into path of
./home, so when I use the command of the
"set filename [tk_getOpenFile -defaultextension tcl -initialdir /home/newFolder ]",
it will bring out to me a dialog box which just contains a directory of the newFolder.
when I click a right mouse, I can delete a folder from the dialog box.
I known a command can create a directory as following, but it can not create a directory in my
desire path.
set newdir ?whatever?
exec mkdir $newdir
rgds
stewang