Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

problem with Dos mkdir

11 views
Skip to first unread message

SC

unread,
Apr 4, 2008, 6:35:15 PM4/4/08
to
I try to create a directory on DOS environment, using the following:

proc log_dir {dir_name} {
# Create Log Dir
if [catch {exec command.com /c mkdir $dir_name]} iErr] {
puts "Error: $iErr"
return 0
}

set log_dir "c:\\test_data\\abc"
log_dir $log_dir

Sometime it work, and sometimes it can't. I am really confused.

USCode

unread,
Apr 4, 2008, 7:15:08 PM4/4/08
to

Instead of using "exec", have you tried Tcl's "file mkdir ..." ?

0 new messages