Commit 6fea129c80ca4e68b0ae12fddbbbe511c941c256
1 parent
46dfc005
Non-Queue bulk downloads fails on all 64bit environments
PT:1732247 Updated: Added dmsctl.vbs and dmsctl_install.bat Committed by: Charl Joseph Mert
Showing
2 changed files
with
28 additions
and
0 deletions
dmsctl.vbs
0 → 100644
| 1 | +' This script should only be invoked for Vista and Windows 7 | |
| 2 | + | |
| 3 | +'Detecting current OS | |
| 4 | +strComputer = "." | |
| 5 | +currOS = "" | |
| 6 | +doRunAs = false | |
| 7 | + | |
| 8 | +Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") | |
| 9 | +Set colOperatingSystems = objWMIService.ExecQuery ("Select * from Win32_OperatingSystem") | |
| 10 | + | |
| 11 | +For Each objOperatingSystem in colOperatingSystems | |
| 12 | + currOS = objOperatingSystem.Caption & " " & objOperatingSystem.Version | |
| 13 | + currOS = trim(currOS) | |
| 14 | +Next | |
| 15 | + | |
| 16 | +If left(currOS, 19) = "Microsoft Windows 7" Then | |
| 17 | + doRunAs = true | |
| 18 | +End If | |
| 19 | + | |
| 20 | +If doRunAs = true Then | |
| 21 | + Set objShell = CreateObject("Shell.Application") | |
| 22 | + Set objFolder = objShell.Namespace("C:\Program Files (x86)\Zend\ktdms\knowledgetree") | |
| 23 | + Set objFolderItem = objFolder.ParseName("dmsctl_install.bat") | |
| 24 | + objFolderItem.InvokeVerb "runas" | |
| 25 | +End If | |
| 0 | 26 | \ No newline at end of file | ... | ... |