public byte[] getImage(String exeName) {
        try {
			Process p = Runtime.getRuntime().exec("./res/getPrograms.bat " + exeName);
            BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream()));
			int count = 0;
			
            while(true) {
            	line = input.readLine();
            	if(line != null) {
	            	if(count == 4) {
	            		if(line.contains("Windows")) {
	            			return null;
	            		}
	            		System.out.println(line);
	            		break;
	            	}
            	}
            	count++;
            }
            
            p.destroy();
            input.close();
            
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
        
	    File file = new File(line);
	    Icon icon = FileSystemView.getFileSystemView().getSystemIcon(file);	  
	    BufferedImage bim = new BufferedImage(icon.getIconWidth(), icon.getIconHeight(), BufferedImage.TYPE_INT_RGB);
	    ByteArrayOutputStream baos = new ByteArrayOutputStream();
	    byte[] by = null;
	    try {
			ImageIO.write(bim, "jpg", baos);
		    baos.flush();
		    by = baos.toByteArray();
		    baos.close();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	    
		return by;		
	}