Hi 

I am currently porting a script that runs well on a Linux box to a Win2003 box
and am having trouble getting a file move to work.

To make my life a little easier I have installed the GNU Unix tools onto the Win
2003 box so I can use the unix commands in the command shell.

The line I am having trouble with is as follows

$mv_result = `mv $dir/pdfs/$print_dir/$book_no.PDF 
$dir/pdfs/$print_dir/$replace.PDF`;

All of the variables are created OK. I have confirmed this by printing them at
run time just to be sure.

I need to get this move to happen on the Win32 box and can't see how to do it. I
did think that the perl system command might work and this is what I tried

$mv_result = system "mv $dir/pdfs/$print_dir/$book_no.PDF 
$dir/pdfs/$print_dir/$replace.PDF";

This produced no errors and did absolutely nothing.

I am obviously missing something and I would appreciate any help in performing
this file move.


Regards,
Richard Luckhurst                      
Product Development
Exodus Systems - Sydney, Australia.
[EMAIL PROTECTED]
Tel: (+612) 4751-9633
Fax: (+612) 4751-9644
Web: www.resmaster.com 
=================================================
Exodus Systems - Smarter Systems, Better Business
=================================================


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to