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

Stop hardware device from command line

Hello,

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.

Thanks
0
mario_biron
Asked:
mario_biron
1 Solution
 
oBdACommented:
You should be able to that using devcon:

FILE: DevCon Command Line Utility Alternative to Device Manager
http://support.microsoft.com/?kbid=311272

But why don't you simply use UNC paths in the backup job instead of mapped drives?
0
 
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!
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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