my $BASEPATH="D:\\temp\\x"; my $EMCY_NUMBER; $EMCY_NUMBER=$ARGV[0]; my $FILE2="I:\\transfer\\123&abc\\__Proj_EMCY-FRs\@TPS\\xhost.txt"; print "File2 : $FILE2\n"; if ( ! -e $FILE2 ) { print "$FILE2 does not exist.\n"; } else { system("copy $FILE2 $BASEPATH\\$EMCY_NUMBER"); }