Jump to content

So I know there is a .bat command for shutting down on windows 7 becuase I had it but my dvd drive is really annoying and keeps spinning up really loud (i have a laptop) so is there a .bat command for disabling/enabling it insted of going on to computer management?

Thanks :)

Link to comment
https://linustechtips.com/topic/501052-bat-for-disabling-dvd-drive/
Share on other sites

Link to post
Share on other sites

My Personal PC 'Apex' https://uk.pcpartpicker.com/user/LiamBetts123/saved/3rTNnQ

Intel Core i9 9900k, ASUS Z390-A, RTX 2080TI, Meshify C, HX 850i, 32GB Gskill Trident Z RGB @ 3200MHZ, 500GB NVME, 500GB SSD & 2 x 4TB Baracudas 

 
 
 
 
 
 
 
 
 
 
 
 
 
1
Link to post
Share on other sites

I'd personally just disable it through computer management, Not sure if there's a way of doing it through a .bat file.

 

I remember there's the prank where everyone used to hide the .bat file on the desktop and have it open every time the computer started.

Was really annoying.

 

Not sure if you'd be able to do anything like that to stop it from spinning up.

IT Student | Gamer | PC Enthusiast | Life Liver


 

Link to post
Share on other sites

I'd personally just disable it through computer management, Not sure if there's a way of doing it through a .bat file.

 

I remember there's the prank where everyone used to hide the .bat file on the desktop and have it open every time the computer started.

Was really annoying.

 

Not sure if you'd be able to do anything like that to stop it from spinning up.

ok..

Link to post
Share on other sites

  • 9 years later...

sorry for necro but here's the answer

you can put this command in a .bat

 

||

pnputil /disable-device "SCSI\CDROM&VEN_HP&PROD_CDDVDW_SN-208DB\4&2C493A39&0&010000" 

||

 

to find the device instance id of what you want to disable:

 

- open device manager (devmgmt.msc) 

- right-click the device you want to disable and click properties

- in the popup window go to the Details tab

- from the drop down, select Device instance path

- right click and copy the string shown in the box below. paste it in the command (prompt or powershell (you probably have to put the id in quotation marks))

 

https://search.brave.com/search?q=pnputil+to+enable+or+disable+device

Link to post
Share on other sites

Guest
This topic is now closed to further replies.

×