From 3d66afe5be1cc246b6a1a505e3ae35dfc9fb1705 Mon Sep 17 00:00:00 2001 From: htat12 Date: Sat, 16 Jan 2016 14:06:04 +0800 Subject: [PATCH] Update exe2hex.py --- exe2hex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exe2hex.py b/exe2hex.py index a53ac17..81bed37 100755 --- a/exe2hex.py +++ b/exe2hex.py @@ -295,7 +295,7 @@ def save_posh(self): output += "for ($i=0;$i -le $len-1;$i+=2)" output += "{$bin[$x]=[byte]::Parse($hex.Substring($i,2),[System.Globalization.NumberStyles]::HexNumber);" output += "$x+=1};" - output += "set-content -encoding byte '%s.hex' -value $bin;\"%s\r\n" % (self.short_file, suffix) + output += "set-content -encoding byte '%s' -value $bin;\"%s\r\n" % (self.exe_filename, suffix) output += "%sdel /F /Q %s.hex%s\r\n" % (prefix, self.short_file, suffix) output += "%sstart /b %s%s\r\n" % (prefix, self.exe_filename, suffix)