Thanks,
I'm running 1.5 version of java and I'm simply attempting to move a file from a
source directory to a target directory.
It seems the renameTo works fewer times than it does.
I print the absolute path to ensure they're correct and they are.
Someone mentioned there's a renameTo bug. Is there a workaround?
I'm thinking of exec'ing a process and running a dos move.
Thank again.
Sly
Roedy Green - 05 Apr 2006 02:08 GMT
>It seems the renameTo works fewer times than it does.
renameTo only works if the file itself does not need to be moved
between partitions.
If you need to actually copy the file, see
http://mindprod.com/products1.html#FILETRANSFER

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.