#181414 - 2007-10-10 09:19 AM
Possible copy bug with 4.60?
|
oneill
Fresh Scripter
Registered: 2005-03-24
Posts: 27
Loc: Australia
|
Hello All, I'm trying to copy a file from my domain controller using KIX 4.60 copy command and I've noticed a slight difference between the earlier versions of KIX and the new version of KIX.
If I execute the following code;
@KIX ? $XLA_Srce = "\\csenergy\netlogon\files\TSJXL9.XLA" $XLA_Dest = "C:\Documents and Settings\goneill\Application Data\Microsoft\Excel\XLSTART" $XLA_Srce ? $XLA_Dest ? Copy $XLA_Srce $XLA_Dest 'Code (' + @ERROR + ') ' + @SERROR ?
Result: 4.60 \\domain\netlogon\files\TSJXL9.XLA C:\Documents and Settings\goneill\Application Data\Microsoft\Excel\XLSTART Code (0) The operation completed successfully.
As you can see from the result it says that the copy was successfully however the file isn't copied. If I run the same code using 4.53 or 4.51 then it works successfully and the file is actually copied.
If I add a backslash "\" to the end of the destination path it works for all versions. e.g. $XLA_Dest = "C:\Documents and Settings\goneill\Application Data\Microsoft\Excel\XLSTART\"
Is anyone else able to reproduce this behaviour? Is this a bug or is it expected?
thanks.
|
Top
|
|
|
|
#181489 - 2007-10-11 10:42 AM
Re: Possible copy bug with 4.60?
[Re: Witto]
|
oneill
Fresh Scripter
Registered: 2005-03-24
Posts: 27
Loc: Australia
|
If the trailing backslash is required, why do I then get a successful message? Shouldn't it produce an error?
|
Top
|
|
|
|
#187689 - 2008-05-16 12:42 AM
Re: Possible copy bug with 4.60?
[Re: Sealeopard]
|
MIDAC
Just in Town
Registered: 2006-08-12
Posts: 1
|
Guys, this is crazy!!! I've spent hours on trying to figure out why my script was copying to the wrong folder. Finally went back to an older version of KIX as that was the only thing that had changed, and lo and behold, it worked fine. So I found this thread... really, these are pretty fundamental changes you are making causing your loyal followers like myself to tear our hair out. And I agree with some poster above, the way it is now is not very intuitive and as to why it dumps stuff in one folder up instead of renaming it to the new name, is also not right.
I also found that the MOVE command seems to have given the same treatment.. I had to add a trailing "/" there too to make it work like before.
Angry Mike
|
Top
|
|
|
|
#191683 - 2009-01-07 09:39 AM
Re: Possible copy bug with 4.60?
[Re: Ruud van Velsen]
|
CrimInalA
Fresh Scripter
Registered: 2007-07-05
Posts: 18
Loc: ko
|
Any idea as when this issue will be resolved ?
What is the option for now ? use a trailing backspace if you want to copy to a directory ?
_________________________
no signature
|
Top
|
|
|
|
Moderator: ShaneEP, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart
|
1 registered
(Allen)
and 466 anonymous users online.
|
|
|