private static String getRemoveHardLinkCommandTemplate() throws IOException {

		//read rdpro.properties in the user home's folder?
		String homeDir = System.getProperty("user.home");
		Properties config = new Properties();
		InputStream input = null;

		try {

			input = new FileInputStream(homeDir+"/rdpro.properties");
			// load a properties file
			config.load(input);

		} catch (IOException ex) {
			//
		} finally {
			if (input != null) {
				try {
					input.close();
				} catch (IOException e) {
					//e.printStackTrace();
				}
			}
		}


		String commandTemplate;
//		if (OSDetectUtils.getOS()== OSDetectUtils.OSType.WINDOWS || OSDetectUtils.getOS()== OSDetectUtils.OSType.LINUX ) {
//		}
		if (OSDetectUtils.getOS()== OSDetectUtils.OSType.MAC) {

			String pathToLinkd = (config.getProperty("pathToUnlinkDirExecutable")==null? default_mac_hunlink_path : config.getProperty("pathToUnlinkDirExecutable"));
			if (!new File(pathToLinkd).exists())
				throw new IOException("pathToUnlinkDirExecutable is not valid, make sure the linkd.exe exists in the path specified:" + pathToLinkd);

			commandTemplate = pathToLinkd+ " %s";


		}
		if (OSDetectUtils.getOS()== OSDetectUtils.OSType.WINDOWS) {
			String pathToLinkd = (config.getProperty("pathToUnlinkDirExecutable")==null? default_linkd_path : config.getProperty("pathToUnlinkDirExecutable"));
			File f = new File(pathToLinkd);
			if ( !f.exists())
				throw new IOException("pathToUnlinkDirExecutable is not valid, make sure the linkd.exe exists in the path specified:" + pathToLinkd);

			commandTemplate = pathToLinkd+ " %s /D ";

		}
		else {
			throw new IOException("OS not supported:" +OSDetectUtils.getOS());
		}
		return commandTemplate;
	}