in reply to Re: Copy Database to another location
in thread Copy Database to another location

Thanks for all your recommendations!
I think I will just use the Document file that is output from the Cold Fusion Front end which will give me the records I need. Then use this Script to transfer the Document file to the infoserver. This works but was wondering how I can check if the copy was successful?
use strict; my $listFile = "C:\\theDoc.doc"; my $listFile2 = "\\\\theinfoServer\\dir\\"; open(LIST, $listFile) || die "Cant open $listFile : $!"; while(<LIST>) { #Can I put a Exception statement for this system command? I am not +familiar with Exceptions in Perl system("copy $listFile $listFile2 > nul"); } close(LIST); print "Successfully copied\n";