Hi,
I am trying to download multiple files using FTP package in Tcl. I am trying to download all the files which match a pattern like "04022202K*". Could anyone tell me how I can achieve this. Any help would be appreciated. Below is coed snippet with which I am trying to figure out how to acheive this:
proc getFiles {} {
set file "04022002K*"
FTP::Open abcd eeeee aaa
FTP::Cd inc/crp
#Here I need to get all the files matching $file
if {[FTP::Get $file]} {
puts "File found"
} else {
puts "Unable to download file"
}
FTP::Close
}
I am trying to download multiple files using FTP package in Tcl. I am trying to download all the files which match a pattern like "04022202K*". Could anyone tell me how I can achieve this. Any help would be appreciated. Below is coed snippet with which I am trying to figure out how to acheive this:
proc getFiles {} {
set file "04022002K*"
FTP::Open abcd eeeee aaa
FTP::Cd inc/crp
#Here I need to get all the files matching $file
if {[FTP::Get $file]} {
puts "File found"
} else {
puts "Unable to download file"
}
FTP::Close
}