DOS command

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
serge_girard
Posts: 3309
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

DOS command

Post 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
There's nothing you can do that can't be done...
User avatar
AUGE_OHR
Posts: 2093
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: DOS command

Post by AUGE_OHR »

hi,

i have build a Tool to "eject" USB-Stick
Attachments
USBEJECT.ZIP
(1.5 MiB) Downloaded 152 times
have fun
Jimmy
SvargasD
Posts: 12
Joined: Sat Mar 24, 2018 2:50 pm
DBs Used: DBF

Re: DOS command

Post 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/
User avatar
serge_girard
Posts: 3309
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: DOS command

Post by serge_girard »

Thanks all!

I will look at it in the days coming.

Serge
There's nothing you can do that can't be done...
User avatar
serge_girard
Posts: 3309
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: DOS command

Post by serge_girard »

Jimmy,

OS.CH is missing while compiling....
There's nothing you can do that can't be done...
User avatar
AUGE_OHR
Posts: 2093
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: DOS command

Post 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 ) )
have fun
Jimmy
User avatar
serge_girard
Posts: 3309
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: DOS command

Post by serge_girard »

Oops... now DLL.CH is missing!
There's nothing you can do that can't be done...
User avatar
AUGE_OHR
Posts: 2093
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: DOS command

Post 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
have fun
Jimmy
User avatar
serge_girard
Posts: 3309
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: DOS command

Post by serge_girard »

Thanks! Now it works and so I can loof for my needs!

Serge
There's nothing you can do that can't be done...
Post Reply