Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^4: Moving files and directories

by Anonymous Monk
on Mar 15, 2012 at 17:28 UTC ( [id://959828] : note . print w/replies, xml ) Need Help??


in reply to Re^3: Moving files and directories
in thread Moving files and directories

I am having similar trouble with Windows. I resorted to using the back tick operator and window's move command to move directories...

$s = "C:/temp/$here"; $d = "C:/$there/"; `move $s $d`; -e "$d/$here" && !-e $s ? print "Move successfully\n" : print "Move er +ror $d/$here \n".$!;