eject a portable hard drive

  • Thread starter Thread starter smmalis
  • Start date Start date
S

smmalis

I am making a .bat file as a macro and part of the macro involves
ejecting a portable USB hard drive. Is there any way to do this in the
command line?
 
This won't eject it, but it will bring up the dialog: (one line but
will wrap)

%SystemRoot%\System32\RUNDLL32.EXE shell32.dll,Control_RunDLL
hotplug.dll

or just:
RUNDLL32.EXE shell32.dll,Control_RunDLL hotplug.dll

....Alan
--
Alan Edwards, MS MVP Windows - Internet Explorer
http://dts-l.org/index.htm



On 9 Jan 2007 17:52:45 -0800, in microsoft.public.windowsxp.general,
 
Back
Top