OSDN Git Service

CompareMS*Files.sct: Avoid detecting the script calling WScript.Shell#Run as a virus.
authorsdottaka <sdottaka@users.sourceforge.net>
Thu, 22 Jan 2015 00:02:08 +0000 (09:02 +0900)
committersdottaka <sdottaka@users.sourceforge.net>
Thu, 22 Jan 2015 00:02:08 +0000 (09:02 +0900)
--HG--
branch : stable

Plugins/dlls/CompareMSExcelFiles.sct
Plugins/dlls/CompareMSWordFiles.sct

index 048143f..c9c6caa 100644 (file)
@@ -358,10 +358,14 @@ Function ShowSettingsDialog()
        Dim tfile: Set tfile = fso.CreateTextFile(tname)
        tfile.Write getResource("dialog1")
        tfile.Close
-       wsh.Run "mshta.exe """ & tname & """", 1, True
+       Run wsh, "mshta.exe """ & tname & """"
        fso.DeleteFile tname 
 End Function
 
+Sub Run(sh, cmd)
+       sh.Run cmd, 1, True
+End Sub
+
 </script>
 
 <resource id="dialog1">
index 145a19c..72e949a 100644 (file)
@@ -267,10 +267,14 @@ Function ShowSettingsDialog()
        Dim tfile: Set tfile = fso.CreateTextFile(tname)
        tfile.Write getResource("dialog1")
        tfile.Close
-       wsh.Run "mshta.exe """ & tname & """", 1, True
+       Run wsh, "mshta.exe """ & tname & """"
        fso.DeleteFile tname 
 End Function
 
+Sub Run(sh, cmd)
+       sh.Run cmd, 1, True
+End Sub
+
 </script>
 
 <resource id="dialog1">