blumi Posted October 28, 2015 Share Posted October 28, 2015 Found here in forum this small script to get some info from the local hard disk.Works fine on Win 7 but not on Win 10Any ideas?Dim $sResult $strComputer = "." $objWMIService = ObjGet("winmgmts:{impersonationLevel=impersonate}!\\" & $strComputer & "\root\cimv2") $colItems = $objWMIService.ExecQuery("Select * from Win32_DiskDrive") For $objItem In $colItems $HDInfos = $objItem.Caption $HDGroesse = Int($objItem.Size / 1024 ^ 3) Next MsgBox(64, $ScriptName, "HD Infos: " & $HDInfos) MsgBox(64, $ScriptName, "Grösse: " & $HDGroesse) Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted October 28, 2015 Share Posted October 28, 2015 In which way doesn't it work? Do you get a error message? .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
blumi Posted October 28, 2015 Author Share Posted October 28, 2015 (edited) Nothing is shown, no msgbox opens.No error Edited October 28, 2015 by blumi Link to comment Share on other sites More sharing options...
Danp2 Posted October 28, 2015 Share Posted October 28, 2015 Works for me once I fixed the issue with $ScriptName being undefined. Post the results from the Scite output window. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now