FAQs All Forums All Comments Screencasts
Example: proc foo {path} { del /q $path\\*.* }
When i call the proc like this: foo c:\\mydoc, but occur error "invalid command name del". However, i can execute "del" command external of proc.
Anybody help me?
You are relying on the interactive Tcl behavior of the unknown command. You want to use exec, and look at the auto_execok command.
Thank jeffh, i had resolve the problem according to your prompt.
You are relying on the interactive Tcl behavior of the unknown command. You want to use exec, and look at the auto_execok command.
Thank jeffh, i had resolve the problem according to your prompt.