Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE
Computer = "." Drive = "c:" Path = "\\Documents and Settings\\someone\\My Documents" strFile = "test.txt" 'Normalize the Path variable for use in the query if right(Path,1) <> "\" then Path = Path & "\" End If Path = replace(Path,"\","\\") 'For testing: 'wscript.echo Computer & " " & Drive & " " & Path 'Execute the WMI query to get the file information Set WMIService = GetObject("winmgmts:\\" & Computer & "\root\cimv2") WMIQuery = "Select FileSize from CIM_DataFile where drive = '" & Drive & "' and Path = '" & Path & "'" Set Results = WMIService.ExecQuery(WMIQu<wbr ></wbr>ery) 'For testing: wscript.echo "Found " & Results.Count & " files"