Skip to content

Commit

Permalink
fix #138
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksgata committed Oct 9, 2023
1 parent 38e1235 commit 9140d85
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ public static String getHardDiskSN(String drive) {
fw.write(vbs);
fw.close();
String path = file.getPath().replace("%20", " ");
Process p = Runtime.getRuntime().exec(
"cscript //NoLogo " + path);
String[] cmd = {"cscript", "/nologo", path};
Process p = Runtime.getRuntime().exec(cmd);
BufferedReader input = new BufferedReader(new InputStreamReader(
p.getInputStream()));
String line;
Expand Down

0 comments on commit 9140d85

Please sign in to comment.