| | |
| | | Linux("Linux", null), |
| | | Mac_OS("Mac OS", null), |
| | | Mac_OS_X("Mac OS X", null), |
| | | Windows("Windows", "D:\\WMS系统激活码(请勿删除).txt"), |
| | | Windows("Windows", "D:\\licensed.txt"), |
| | | OS2("OS/2", null), |
| | | Solaris("Solaris", null), |
| | | SunOS("SunOS", null), |
| | |
| | | } |
| | | boolean newFile = file.createNewFile();// 创建新文件 |
| | | if (newFile) { |
| | | String sets = "attrib +H \"" + file.getAbsolutePath() + "\""; |
| | | Runtime.getRuntime().exec(sets); |
| | | BufferedWriter out = new BufferedWriter(new FileWriter(file, true)); |
| | | out.write(code); // \r\n即为换行 |
| | | out.flush(); // 把缓存区内容压入文件 |