Check whether file/folder exist or not in tcl.

p18.tcl

set folder /home/linux/tcl/farhat     # you can even set file name.

if {[file exists $folder] == 1} {


puts "yes"

} else {

puts "No"

}

Post a Comment

Previous Post Next Post