Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^4: File name is long to copy

by harishnv (Sexton)
on Apr 26, 2020 at 13:36 UTC ( [id://11116080]=note: print w/replies, xml ) Need Help??


in reply to Re^3: File name is long to copy
in thread File name is long to copy

The error is "couldn't copy file No such file or directory at C:\sandboxes\Scripts\dummy.pl line 9."

Replies are listed 'Best First'.
Re^5: File name is long to copy
by soonix (Canon) on Apr 26, 2020 at 16:12 UTC
    I suggest changing the error message like hippo advised here
    "couldn't copy file '$source' to '$target': $!";
    and perhaps count the backslashes.
Re^5: File name is long to copy
by marto (Cardinal) on Apr 26, 2020 at 13:55 UTC

    If you are convinced the path/filename is correct, can you replace the copy with syscopy to make use of Win32::CopyFile via Win32API? Which version of Perl are you running?

      Perl512 I used syscopy, got this error "Undefined subroutine &main::syscopy called at .."

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11116080]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-23 22:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found