Search the Community
Showing results for tags 'windows xp'.
-
Should the ability to check if a drive is an SSD even work in Windows XP? (And yes, I know it's a can of worms to look into this on XP, trust me I am only doing what I am asked to do by someone else). E.g., If I do the following: #cs ---------------------------------------------------------------------------- AutoIt Version: 3.3.14.0 Script Function: Checks if a drive letter is an SSD drive #ce ---------------------------------------------------------------------------- #RequireAdmin #include <AutoItConstants.au3> $s_chkDrv = "E:" $s_isDrive = DriveGetType($s_chkDrv, $DT_DRIVETYPE) $s_isSSD = DriveGetType($s_chkDrv, $DT_SSDSTATUS) $s_whatBus = DriveGetType($s_chkDrv, $DT_BUSTYPE) ConsoleWrite("$s_isDrive=" & $s_isDrive & @CRLF & "$s_isSSD=" & $s_isSSD & @CRLF & "$s_whatBus=" & $s_whatBus & @CRLF) My results are as follows (and I know for certain the drive is an SSD): --> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop $s_isDrive=Fixed $s_isSSD= $s_whatBus=SCSI +>12:44:17 AutoIt3.exe ended.rc:0 +>12:44:17 AutoIt3Wrapper Finished. >Exit code: 0 Time: 0.4762
- 13 replies
-
- ssd
- detect drive
-
(and 1 more)
Tagged with:
-
Hi, In windows XP I'm running a program wich reads a barcode from a PDF file. For this I'm using a DLL (from Bytescout) which I have registered. The program looks like this: global $barcode $barReader = ObjCreate("Bytescout.BarCodeReader.Reader") $barReader.TypeToFind = 32 $barReader.ReadFromFile("\apps\example.pdf") $barcode = $barReader.GetFoundBarcodeValue(0) msgbox(0,"barcode= ",$barcode) The VBS code that does the same is: Set barReader = CreateObject("Bytescout.BarCodeReader.Reader") barReader.TypeToFind = 32 barReader.ReadFromFile "\apps\example.pdf" barcode=barReader.GetFoundBarcodeValue(0) Msgbox "barcode= " & barcode But when I'm running the autoit executable on a Windows server 2008 it gives an error on line 3, saying that the variable must be of type "object". The VBS code doesn't give this error and works fine. Anyone having an idea what the problem could be?