I'm trying to copy a file but the file name is long. Therefore copy is failing even though the file exits. How to resolve this issue? The path specified is an example of what i'm trying to copy the file.
#!\\\\usr\\\\bin\\\\perl use strict; use warnings; use File::Copy; my $source="C:\\sandboxes\\source_backup\\source_backup\\source_develo +p\\source_folder\\source_part\\source_specific\\source_common\\rb_src +c_sourcedevelopfolderpartspe_Interfacessourcecommonspecific.h"; my $target="C:\\sandboxes\\target_backup\\target_backup\\target_develo +p\\generated\\_hnv_scan\\_source_develop\\source_folder\\source_part\ +\source_specific\\source_common"; copy($source,$target) or die "could not do"; print ("done");
In reply to File name is long to copy by harishnv
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |