public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		System.out.println("Please input a serial number to search for: ");
		inputSerialNumber = new Scanner (System.in);
		unitSerialNumber = inputSerialNumber.nextLine();
		fromDir1 = new File("//mri-fileserver/SMW Shipping/5500-000-DW-000-XX");
		fromPath1 = getFiles(fromDir1).toString();
		fromDir2 = new File("//mri-pultt/Production Test Results/" + unitSerialNumber);
		//fromDir2 = new File("//mri-pultt/Production Test Results/~FinalResults/Budweiser Coolers #1");
		fromPath2 = getFiles(fromDir2).toString();
		toPath = "C:/Users/cash/Documents/Test/";
		
		
		
		unit = new File(unitSerialNumber);
		newDirectory = new File(toPath + "/" + unitSerialNumber);
		
		
		if (!newDirectory.exists()){
			System.out.println("Creating New Directory for " + unitSerialNumber);
			boolean result = false;
			
			try {
				newDirectory.mkdir();
				result = true;
			} catch (SecurityException se){
				//handle it
			}
			if (result){
				System.out.println("Directory Created");
			}
		}
		System.out.println(unit);
		
		
		FilenameFilter filter = new FilenameFilter() {
			
			@Override
			public boolean accept(File fromDir1, String name) {
				// TODO Auto-generated method stub
				return name.contains(unitSerialNumber);
			}
		};
		
		String[] children = fromDir1.list(filter);
		if (children == null){
			System.out.println("Either dir does not exist or is not a directory");
		}
		else 
		{			
			Path FROM = Paths.get(fromPath1);
			Path TO = Paths.get(newDirectory + "/" + unitSerialNumber + ".pdf");
			Files.copy(FROM, TO, StandardCopyOption.COPY_ATTRIBUTES);
		}
		
		
		FilenameFilter filter2 = new FilenameFilter() {
			
			@Override
			public boolean accept(File fromDir2, String name)
			{
				return name.contains("DUh");				
			}
		};
		
		String[] children2 = fromDir2.list(filter2);
		if (children2 == null){
			System.out.println("Either dir does not exist or is not a directory");
		}
		else {
			File[] newestFullSystemTest = fromDir2.listFiles(new FileFilter() {
				
				@Override
				public boolean accept(File file) {
					// TODO Auto-generated method stub
					return file.isFile();
				}
			});
			long lastMod = Long.MIN_VALUE;
			File fullSystemTest = null;
			for (File file : newestFullSystemTest){
				if (file.lastModified() > lastMod){
					fullSystemTest = file;
					lastMod = file.lastModified();
				}
			}
			//String fullSystemTest = Paths.get(fromPath2).getFileName().toString();
			Path FROM = Paths.get(fromPath2);
			Path TO = Paths.get(newDirectory +"/" + fullSystemTest);
			Files.copy(FROM, TO, StandardCopyOption.COPY_ATTRIBUTES);
		}
		

	}