sPluginPath = "%COMMANDER_PATH%\Plugins\exe\NTFSLinks\"
sExe32 = "NtfsLinks_x32.exe"
sExe64 = "NtfsLinks_x64.exe"
Set WshShell = WScript.CreateObject("WScript.Shell")
Set oArguments = WScript.Arguments
sPath = WshShell.ExpandEnvironmentStrings(sPluginPath)
sWL = oArguments(0)
sT = oArguments(1)
If Len(WshShell.ExpandEnvironmentStrings("%ProgramFiles(X86)%")) = 19 Then
WshShell.Run """" & sPath & sExe32 & """ """ & sWL & """ """ & sT & """ /i=config.ini"
Else
WshShell.Run """" & sPath & sExe64 & """ """ & sWL & """ """ & sT & """ /i=config.ini"
End If
|