• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 306
  • Last Modified:

Stop hardware device from command line


I want to stop and start a hardware driver from the command line, in a AT job.

The hardware device is "USBSTOR", which is a small USB card reader.

The reason why is that, when I leave the office at night, I often forget to unplug it, and it takes 4 drive letters on my computer.  Because of this, another AT job (which compacts access databases automatically, updates them and copy them on the network) won't run properly because of a lack of drive letter to connect a network share to.

1 Solution
You should be able to that using devcon:

FILE: DevCon Command Line Utility Alternative to Device Manager

But why don't you simply use UNC paths in the backup job instead of mapped drives?
mario_bironAuthor Commented:
Because of low levels command tools in the at batch file that don't support the use of unc paths.

Thanks for the solution, it was exactly what I needed!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now