ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

IDEA: Drop to disconnect

<< < (2/2)

ak_:
I think USB Disk Ejector could be helpful.

jgpaiva:
ak: Usb disk ejector is a perfect solution!!
I've made an ahk script to do what wreckedcarzz initially asked for:

ejectDrive inside
--- ---;
; Author:         jgpaiva
; Needs:          USB disk ejector
;
; Script Function:
; ejects a drive that is dragged into it
;

#notrayicon
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.

numberOfArgs = %0%
arg1 = %1%

StringLeft,arg1,arg1,1

usbEjector = USB_Disk_Eject.exe                                         

if(numberOfArgs = 1)
  run,%usbEjector% /SHOWEJECT /REMOVELETTER %arg1%
else
  run,%usbEjector% /SHOWEJECT


If you want to not have the usb_disk_ejector.exe on the same folder as ejectDisk, just change its path at the top of the script! ;)

[edit] I forgot to mention: you can disconnect a drive by drag+dropping anything inside the drive onto ejectDrive, it doesn't matter if it's the drive itself or not [/edit]

wreckedcarzz:
 :-* IT WORKS PERFECTLY! :D

Thanks so much jgpaiva, this will be sitting on my desktop permanently now. :Thmbsup:

jgpaiva:
Glad to know that, wreckedcarzz!

Navigation

[0] Message Index

[*] Previous page

Go to full version