Search found 12 matches

by jantom
14 Sep 2014, 10:11
Forum: Scripts and Functions
Topic: Eject() : For Removable storage devices
Replies: 66
Views: 26487

Re: Eject() - For CD/DVD and USB Mass Storage devices

Great! It works fine with my drive now, too.
by jantom
13 Sep 2014, 15:05
Forum: Scripts and Functions
Topic: Eject() : For Removable storage devices
Replies: 66
Views: 26487

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.
by jantom
13 Sep 2014, 12:40
Forum: Scripts and Functions
Topic: Eject() : For Removable storage devices
Replies: 66
Views: 26487

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 ( NumGet( STORAGE_DEVICE_NUMBER, "UInt" ) = FILE_DEVICE_DISK )


If I omit the above if clause then sPHDRV = \\\\.\\PHYSICALDRIVE0
by jantom
13 Sep 2014, 05:03
Forum: Scripts and Functions
Topic: Eject() : For Removable storage devices
Replies: 66
Views: 26487

Re: Eject() - For CD/DVD and USB Mass Storage devices

DeviceType: 7
DeviceNumber: 2
PartitionNumber: 1
---------------------------
by jantom
13 Sep 2014, 03:21
Forum: Scripts and Functions
Topic: Eject() : For Removable storage devices
Replies: 66
Views: 26487

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...
by jantom
12 Sep 2014, 14:12
Forum: Scripts and Functions
Topic: Eject() : For Removable storage devices
Replies: 66
Views: 26487

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?
by jantom
12 Sep 2014, 11:09
Forum: Scripts and Functions
Topic: Eject() : For Removable storage devices
Replies: 66
Views: 26487

Re: Eject() - For CD/DVD and USB Mass Storage devices

Great. Thank you so much.
by jantom
12 Sep 2014, 10:38
Forum: Scripts and Functions
Topic: Eject() : For Removable storage devices
Replies: 66
Views: 26487

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...
by jantom
12 Sep 2014, 10:14
Forum: Scripts and Functions
Topic: Eject() : For Removable storage devices
Replies: 66
Views: 26487

Re: Eject() - For CD/DVD and USB Mass Storage devices

Hex is:

B14CB7010000100000000000
by jantom
12 Sep 2014, 02:17
Forum: Scripts and Functions
Topic: Eject() : For Removable storage devices
Replies: 66
Views: 26487

Re: Eject() - For CD/DVD and USB Mass Storage devices

yes, ErrorLevel is -3
by jantom
12 Sep 2014, 02:15
Forum: Scripts and Functions
Topic: Eject() : For Removable storage devices
Replies: 66
Views: 26487

Re: Eject() - For CD/DVD and USB Mass Storage devices

Here's the content of Msgbox:

---------------------------
Eject.ahk
---------------------------
\\
---------------------------
OK
---------------------------
by jantom
11 Sep 2014, 11:48
Forum: Scripts and Functions
Topic: Eject() : For Removable storage devices
Replies: 66
Views: 26487

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?

Go to advanced search