Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
use strict; my $filename = "myDatabaseName.mdb"; open(FILEOPENED, $filename) || die "Can't open file: $filename \n"; while ($line = <FILEOPENED>) { print "$line \n"; my $cmd = "copy H:currdir\\$line \\\infoserver\\destinationDir"; + print "$cmd\n"; my $result = system($cmd); if ($result) { warn qq(Couldn't execute "$cmd"!\n); next; } } close(FILEOPENED);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Copy Database to another location
by Errto (Vicar) on Feb 06, 2006 at 20:34 UTC | |
|
Re: Copy Database to another location
by neilwatson (Priest) on Feb 06, 2006 at 20:34 UTC | |
|
Re: Copy Database to another location
by InfiniteSilence (Curate) on Feb 06, 2006 at 21:38 UTC | |
by Anonymous Monk on Feb 07, 2006 at 23:01 UTC |