copy error



When I try to copy a file I get the message 'No such file or
directory'. I know the file is there and I know the path is correct
because in fact the file does copy. However some of my files are not
copying correctly and I am trying to figure out why so I am logging
everything.

#here is my code
for () {
....

$BAK->logMsg( "Copying $today\\$move_cube_name[4] to
$yesterday\\$move_cube_name[4]" .
copy("$today\\$move_cube_name[4]","$yesterday\\$move_cube_name[4]") .
$!) ;
#reset $! each time through loop
$! = '';

....
}

The above code is logged and it produces this output but the file is
copied. It also returns a '1' which I dont not understand since it
copied. Shouldnt it be '0'?

Copying D:\cognos_cubes\mmt\Today\Funding View.mdc to
D:\cognos_cubes\mmt\Yesterday\Funding View.mdc1No such file or
directory

.



Relevant Pages

  • Re: Load of old TOS
    ... thats the link for seltos, Im not positive it works with 4.02 but I dont see ... why it shouldnt. ... Prev by Date: ...
    (comp.sys.atari.st)
  • Re: serial port data loss,i think
    ... However I tried this piece and dont know whether the results I get are ... Watching the variables msomm1.input and sdata in the watch window,I am ... Shouldnt the 2 values be the same? ... Prev by Date: ...
    (microsoft.public.vb.general.discussion)
  • Re: Java Timer
    ... as i dont want to try it that way. ... something which is not very resource intensive and all it does is loop ... a variable for 10 secs and once thats over does what i want it to do. ... Prev by Date: ...
    (comp.lang.java.programmer)
  • Newbie: Write line to file question
    ... in a loop etc. nothing special. ... but i dont want the quotes!!! ... Prev by Date: ...
    (microsoft.public.vb.general.discussion)
  • Re: break statement
    ... possible setting a boolean flag" ... > NO GOTO PLEASE ... > dont achieve things any better then using while/loops/fors.... ... > inner loop and a flag to get off the outer one or yet anothe break. ...
    (microsoft.public.dotnet.framework)