Hello, you are sure that the file is maybe not write protected or like set readonly, you have the right security permissions, etc?
If I am right you are using 5.6.1, but the Modul File::NCopy is for version 5.8, maybe thats the problem. Alternativ the following Modul provides a Copy Function too. Win32API::File - Low-level access to Win32 system API calls for files/dirs. CopyFile( $sOldFileName, $sNewFileName, $bFailIfExists ) > -----Original Message----- > From: Basil Daoust [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 24, 2003 12:45 AM > To: pijush koley > Cc: [EMAIL PROTECTED]; > [EMAIL PROTECTED]; Wagner, David --- Senior > Programmer Analyst --- WGO > Subject: RE: File::NCopy is giving error > > > Did you try a none perlish solution like `copy > "\\Test/x.txt", "C:\Temp"`; > Or something like that? > > Basil > > > > > > pijush koley > > > <[EMAIL PROTECTED]> > To: "Wagner, David --- Senior Programmer Analyst --- > WGO" > Sent by: > <[EMAIL PROTECTED]> > > [EMAIL PROTECTED] > cc: [EMAIL PROTECTED] > > veState.com > Subject: RE: File::NCopy is giving error > > > > > > > > 23/07/2003 02:39 PM > > > > > > > > > > > > This tricks is not working. > Is there any other way?? > Thanks > -Pijush > --- "Wagner, David --- Senior Programmer Analyst --- > WGO" <[EMAIL PROTECTED]> wrote: > > pijush koley wrote: > > > Hi! > > > I am using ActiveSatate Perl v5.6.1 on windows > > 2000. > > > I have installed File::NCopy module on it. To copy > > a > > > file and directory from one directory location to > > > another directory I am using this module. e.g to > > copy > > > a file I am using following code > > > File::NCopy::copy("C:\\Blah/x.txt", "C:\\Temp") > > > This code is working fine. > > > > > > But when I am trying to copy from a shared > > directory, > > > it is failed. My code is like this > > > File::NCopy::copy("\\Test/x.txt", "C:\\Temp") > > For this to work with double quotes you will need > > to double the \\ to be \\\\ which will end up as \\ > > to the code. > > > > Wags ;) > > > where Test is a shareable directory from another > > > machine and I can open it by typing \\Test. > > > > > > Is there any method to copy file and directory > > from a > > > shareable directory? > > > Any suggestion really appreciated. > > > Thanks > > > Pijush > > > > > > __________________________________ > > > Do you Yahoo!? > > > Yahoo! SiteBuilder - Free, easy-to-use web site > > design software > > > http://sitebuilder.yahoo.com > > > _______________________________________________ > > > ActivePerl mailing list > > > [EMAIL PROTECTED] > > > To unsubscribe: > > http://listserv.ActiveState.com/mailman/mysubs > > > > > > > > > ********************************************************** > > This message contains information that is > > confidential > > and proprietary to FedEx Freight or its affiliates. > > It is intended only for the recipient named and for > > the express purpose(s) described therein. > > Any other use is prohibited. > > > **************************************************************** > > > > > __________________________________ > Do you Yahoo!? > Yahoo! SiteBuilder - Free, easy-to-use web site design software > http://sitebuilder.yahoo.com > _______________________________________________ > ActivePerl mailing list > [EMAIL PROTECTED] > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs > > > > > > _______________________________________________ > ActivePerl mailing list > [EMAIL PROTECTED] > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs > _______________________________________________ ActivePerl mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
