I had to create an Avery 5160 (address labels 3x10) template for jasper for work. If you would like to use that production-ready template you can download it from here. The template has been used in a production environment, however, as always, make sure it works for you before printing too many labels :).
The following Powershell script can be used to send an email alert when a file is missing from a folder or it is the same file from a previous check: $path_mask = "yourfile_*.txt" $previous_file_store = "lastfileread.txt" $script_name = "File Check" ###### Functions ########## Function EMailLog($subject, $message) { $emailTo = "juanito@yourserver.com" $emailFrom = "alert@yourserver.com" $smtpserver="smtp.yourserver.com" $smtp=new-object Net.Mail.SmtpClient($smtpServer) $smtp.Send($emailFrom, $emailTo, $subject, $message) } Try { #get files that match the mask $curr_file = dir $path_mask | select name if ($curr_file.count -gt 0) { #file found #check if the file is different from the previous file read $previous_file = Get-Content $previous_file_store $curr_file_name = $curr_file.Item(0).Name if ($
Comments