Re: Command Prompt Command to:

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: John Coode (faecius_at_yahoo.co.uk)
Date: 12/01/04


Date: Wed, 1 Dec 2004 17:40:06 -0000


"Bob Felton" <rpf.removethis@usa.net> wrote in message
news:ma8qq0l2t3bipug955natp2kv5bcnttg89@4ax.com...
> By chance is there a command prompt command that can be run from a
> batch file that allows removing a connected USB device safely? I'm
> thinking of using a USB HDD for unattended backup. The drive will be
> connected via a USB cable but AC power to it will be turned ON and OFF
> via a timer function (so the drive doesn't spin when not in actual
> use). Manual testing of AC power ON and OFF seems to work OK but at
> times a message pops up saying the device was disconnected in an usafe
> manner. I'm thinking of running the requested command upon completion
> of the backup so when the timer kicks in and turns the drive OFF it is
> done so in a safe manner. Tnx!
> --
> Bob
> --
> Bob Felton

The devcon utility can be used in a batch file to disable the device but
that may not be any better than cutting the power and it will need
administrator privileges to run.
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q311272



Relevant Pages

  • Command Prompt Command to:
    ... By chance is there a command prompt command that can be run from a ... batch file that allows removing a connected USB device safely? ... done so in a safe manner. ...
    (microsoft.public.windowsxp.hardware)
  • Re: window 2000 associations lost; only .lnk files display; cannot access properties
    ... Tried File -> Run and browsed to My computer, the usb drive and clicked on ... Would not allow a command parameter and would not open giving ... assoc command on the healty computer "assoc>abc.txt.Then open the file ... the batch file. ...
    (microsoft.public.win2000.general)
  • Re: log off command
    ... I simply execute the batch file and let them play... ... If it's by the hour you don't need a script. ... You can logoff a sessionname or a session ID in each case you have to ... Is it possible to issue the command from user1's logon to logoff ...
    (microsoft.public.windowsxp.basics)
  • Re: log off command
    ... I simply execute the batch file and let them play... ... If it's by the hour you don't need a script. ... You can logoff a sessionname or a session ID in each case you have to ... Is it possible to issue the command from user1's logon to logoff ...
    (microsoft.public.windowsxp.basics)
  • Re: log off command
    ... SOON 3600 LOGOFF %ID2% ... If it doesn't work please post what the "at" command returns if you run it ... after the batch file and please again describe when it does not work. ... Matija Hrovat ...
    (microsoft.public.windowsxp.basics)