Page 1 of 1
DOS command
Posted: Wed Nov 08, 2023 8:26 pm
by serge_girard
Hello,
Does anybody know if there is some DOS command in order to 'safely remove hardware and eject media'.
Under Notification Area, choose Select which icons appear on the taskbar. Scroll to Windows Explorer: Safely Remove Hardware and Eject Media and turn it on.
I did a search on google 'windows 10 safely remove hardware and eject media' but nothing matches my needs...
Serge
Re: DOS command
Posted: Wed Nov 08, 2023 9:46 pm
by AUGE_OHR
hi,
i have build a Tool to "eject" USB-Stick
Re: DOS command
Posted: Wed Nov 08, 2023 9:48 pm
by SvargasD
Saludos:
Depende del escenario, si quieres expulsar una USB que sera siempre la misma, por ejemplo: alguna memoría que utilizan para respaldar datos. O por el contrario, quieres desconectar cualquier memoría USB que se conecte al dispositivo. Tambien existe la posibilidad de que tengas varias unidades conectadas y solo una en particular es la que requieres desconectar.
Encontre un par de opciones, te comparto los link:
1.
https://learn.microsoft.com/es-es/windo ... s/mountvol
https://www.youtube.com/watch?v=L-lVdoPDVZ0
2.
https://spanish.getusb.info/expulsar-la ... r-version/
https://www.getusb.info/eject-usb-flash ... y-version/
Re: DOS command
Posted: Thu Nov 09, 2023 8:00 am
by serge_girard
Thanks all!
I will look at it in the days coming.
Serge
Re: DOS command
Posted: Thu Nov 09, 2023 8:00 am
by serge_girard
Jimmy,
OS.CH is missing while compiling....
Re: DOS command
Posted: Thu Nov 09, 2023 8:00 pm
by AUGE_OHR
hi,
serge_girard wrote: ↑Thu Nov 09, 2023 8:00 am
OS.CH is missing while compiling....
you are right, it s from Xbase++
but it is not need in Sample so please also delete it and line
Code: Select all
LOCAL nVersion := VAL( OS( OS_VERSION ) )
Re: DOS command
Posted: Fri Nov 10, 2023 7:32 am
by serge_girard
Oops... now DLL.CH is missing!
Re: DOS command
Posted: Fri Nov 10, 2023 3:34 pm
by AUGE_OHR
hi Serge,
serge_girard wrote: ↑Fri Nov 10, 2023 7:32 am
Oops... now DLL.CH is missing!
sorry, it is also from Xbase++
try for DLL.DH :
Code: Select all
// Konstanten der Aufrufkonventionen
#define DLL_SYSTEM 4
#define DLL_CDECL 8
#define DLL_STDCALL 32
#define DLL_XPPCALL 128
#ifdef __OS2__
#define DLL_OSAPI DLL_SYSTEM
#else
#define DLL_OSAPI DLL_STDCALL
#endif
Re: DOS command
Posted: Fri Nov 10, 2023 3:42 pm
by serge_girard
Thanks! Now it works and so I can loof for my needs!
Serge