Hi To all!
I am designing a utility that will back-up files. I have a short program like this:
local tdir, sdir
sdir="c:\sps\data"
tdir="d:\sps\data"
if !empty(tdir)
wait wind "directory found" nowait
set defa to (sdir)
else
wait wind "directory not found" nowait
mkdir (tdir)
endif
My problem is it diplays directory found but it has error on setting the default directory. How do i effectively check the existing directory? How do I make a directory on the else part? is md still usable? How do I copy all the files on the source directory to the target directory? What will be the better way to do it. any recommendation?
Thanks a lot and more power to you all!
Wendz
edbb@lycos.com
I am designing a utility that will back-up files. I have a short program like this:
local tdir, sdir
sdir="c:\sps\data"
tdir="d:\sps\data"
if !empty(tdir)
wait wind "directory found" nowait
set defa to (sdir)
else
wait wind "directory not found" nowait
mkdir (tdir)
endif
My problem is it diplays directory found but it has error on setting the default directory. How do i effectively check the existing directory? How do I make a directory on the else part? is md still usable? How do I copy all the files on the source directory to the target directory? What will be the better way to do it. any recommendation?
Thanks a lot and more power to you all!
Wendz
edbb@lycos.com