Search found 12 matches
- 14 Sep 2014, 10:11
- Forum: Scripts and Functions (v1)
- Topic: Eject() : For Removable storage devices
- Replies: 67
- Views: 40289
Re: Eject() - For CD/DVD and USB Mass Storage devices
Great! It works fine with my drive now, too.
- 13 Sep 2014, 15:05
- Forum: Scripts and Functions (v1)
- Topic: Eject() : For Removable storage devices
- Replies: 67
- Views: 40289
Re: Eject() - For CD/DVD and USB Mass Storage devices
Standalone. I just trigger the function with: Eject ( "F:" ).
Many thanks for looking into it.
Many thanks for looking into it.
- 13 Sep 2014, 12:40
- Forum: Scripts and Functions (v1)
- Topic: Eject() : For Removable storage devices
- Replies: 67
- Views: 40289
Re: Eject() - For CD/DVD and USB Mass Storage devices
But yes, it is blank.
It looks like the following condition is not met:
If I omit the above if clause then sPHDRV = \\\\.\\PHYSICALDRIVE0
It looks like the following condition is not met:
If ( NumGet( STORAGE_DEVICE_NUMBER, "UInt" ) = FILE_DEVICE_DISK )
If I omit the above if clause then sPHDRV = \\\\.\\PHYSICALDRIVE0
- 13 Sep 2014, 05:03
- Forum: Scripts and Functions (v1)
- Topic: Eject() : For Removable storage devices
- Replies: 67
- Views: 40289
Re: Eject() - For CD/DVD and USB Mass Storage devices
DeviceType: 7
DeviceNumber: 2
PartitionNumber: 1
---------------------------
DeviceNumber: 2
PartitionNumber: 1
---------------------------
- 13 Sep 2014, 03:21
- Forum: Scripts and Functions (v1)
- Topic: Eject() : For Removable storage devices
- Replies: 67
- Views: 40289
Re: Eject() - For CD/DVD and USB Mass Storage devices
hVol = 248 sPHDRV = (blank) ErrorLevel = -2 The drive in question is: ---------------------------------------------- Caption: Seagate Expansion USB Device Description: Disk drive DeviceID: \\.\PHYSICALDRIVE1 InterfaceType: USB MediaLoaded: -1 MediaType: External hard disk media Model: Seagate Expans...
- 12 Sep 2014, 14:12
- Forum: Scripts and Functions (v1)
- Topic: Eject() : For Removable storage devices
- Replies: 67
- Views: 40289
Re: Eject() - For CD/DVD and USB Mass Storage devices
Thank you. Unfortunately, I can't make it work.
Can you suggest how to debug?
Can you suggest how to debug?
- 12 Sep 2014, 11:09
- Forum: Scripts and Functions (v1)
- Topic: Eject() : For Removable storage devices
- Replies: 67
- Views: 40289
Re: Eject() - For CD/DVD and USB Mass Storage devices
Great. Thank you so much.
- 12 Sep 2014, 10:38
- Forum: Scripts and Functions (v1)
- Topic: Eject() : For Removable storage devices
- Replies: 67
- Views: 40289
Re: Eject() - For CD/DVD and USB Mass Storage devices
I get this message: --------------------------- Eject.ahk --------------------------- Error at line 19. Line Text: Local sHex, Split, sDID, nDID := 0, nVT := 1, nTC := A_TickCount, VAR, nLen := VarSetCapacity( VAR,1... Error: Local variables must not be declared in this function. The program will ex...
- 12 Sep 2014, 10:14
- Forum: Scripts and Functions (v1)
- Topic: Eject() : For Removable storage devices
- Replies: 67
- Views: 40289
Re: Eject() - For CD/DVD and USB Mass Storage devices
Hex is:
B14CB7010000100000000000
B14CB7010000100000000000
- 12 Sep 2014, 02:17
- Forum: Scripts and Functions (v1)
- Topic: Eject() : For Removable storage devices
- Replies: 67
- Views: 40289
Re: Eject() - For CD/DVD and USB Mass Storage devices
yes, ErrorLevel is -3
- 12 Sep 2014, 02:15
- Forum: Scripts and Functions (v1)
- Topic: Eject() : For Removable storage devices
- Replies: 67
- Views: 40289
Re: Eject() - For CD/DVD and USB Mass Storage devices
Here's the content of Msgbox:
---------------------------
Eject.ahk
---------------------------
\\
---------------------------
OK
---------------------------
---------------------------
Eject.ahk
---------------------------
\\
---------------------------
OK
---------------------------
- 11 Sep 2014, 11:48
- Forum: Scripts and Functions (v1)
- Topic: Eject() : For Removable storage devices
- Replies: 67
- Views: 40289
Re: Eject() - For CD/DVD and USB Mass Storage devices
I get A_LastError = 1.
I'm trying to safely remove a portable USB drive (2.5 inch, 1TB).
It works clicking the standard Win 7 tray icon ('Safely Remove Hardware').
Any suggestion?
I'm trying to safely remove a portable USB drive (2.5 inch, 1TB).
It works clicking the standard Win 7 tray icon ('Safely Remove Hardware').
Any suggestion?