windows-2000

Windows 2000 says that timeout isn't a command or batch file

試著忘記壹切 提交于 2019-12-23 18:02:32
问题 I've just been messing around with CMD, and making animated ascii art. I've been attempting to use the Timeout command on my Windows 2000 laptop, however every time I attempt this, it just says it isn't an internal or external command or batch file. This is on an old Toshiba 3110CT laptop running Windows 2000; I got it from a thrift store at some point. I've tried this on my Windows 10 laptop, and the code works perfectly fine there, but the 2000 laptop is my coding laptop, and I would like

WMI namespace root\cimv2 not available on Win2k?

◇◆丶佛笑我妖孽 提交于 2019-12-10 12:18:36
问题 I'm trying to run the following VBScript code on a Win2k SP4: strComputer = "." Set oWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") It works on XP and Win7 without problems, but on this 2k box I get the following error: C:\test_wmi.vbs(3, 1) (null): 0x8004100E The error description is: Namespace specified cannot be found. When I query the namespaces on root, using this code: strComputer = "." Set objSWbemServices = GetObject("winmgmts

How to format dir command in cmd for XP and Win 2000

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-08 11:17:24
问题 When I use dir command in win XP it returns all kind of info: Volume in drive C is OSDisk Volume Serial Number is AEF7-B35F Directory of C:\Users\bd250124\Desktop\test 06/11/2015 12:14 PM <DIR> . 06/11/2015 12:14 PM <DIR> .. 06/11/2015 12:14 PM 10 test01.txt 06/11/2015 12:13 PM 0 test02.txt 2 File(s) 10 bytes 2 Dir(s) 261,280,952,320 bytes free The problem is that I don't need all that info, I need only file name and last write time. Is there any way to format it, google is not returning any