Re: ATTENTION: dos 'copy' under XP problem
- Posted by don cole <doncole at pa?bel?.net> Jul 25, 2007
- 498 views
Al Getz wrote: > > > Hello, > > > Recently i ran into an unusual problem using the dos 'copy' command > as called from Eu by > system("copy "&pathfrom&" "&pathto,0) > > The copy works many times over and over again, but about once > every two months or so, the file copied to 'pathto' is not the > file that appears in 'pathfrom', but ends up being some small > file. > > This only happens when 'pathto' is on another drive. > When the pathto is changed to the c:\ drive, it works fine again. > > The problem seems to have come into the system when i switched to > a very large hard drive, that uses 48 bit LBA instead of 28 bit. > I say 'seems' here because i can not be positive that this is the > main difference, but it only appeared after i switched to the > larger hard drive, but since it doesnt happen all the time > (only about once every two months) i didnt notice it right away, > although i use the software where the problem shows up in about > once a day or once every two days on average. > > I tried various solutions like putting sleep(1) before and after > the system command, but that didnt work. I also used wait_key() > before and after, but no matter now long you wait it still doesnt > work. Strange thing is, tomorrow it will probably work again. > > I tried rebooting and that did not solve it either. > > > Al > > E boa sorte com sua programacao Euphoria! > > > My bumper sticker: "I brake for LED's" > Hello Al, When you used wait_key just before it did you send to screen, "I am about to copy pathfrom and size to pathto"? And after the copy print on screen, "I just copied pathfrom and size to pathto and size"? Does all this jive and it still copies wrong? If so maybe you have to use a diff dos version for that drive. Just guessing. Don Cole