PC Review


Reply
Thread Tools Rate Thread

Can I do this with a script or batch file?

 
 
Grey
Guest
Posts: n/a
 
      27th Nov 2006
Supposing I have a number of identical laptops running XP SP2 and I want to
disable the CD ROM or some other device in Device Manager. Is there a way I
can create and run a script which I can run from each machine to do this for
me to same a great deal of time and mouse clicking?

Graham


 
Reply With Quote
 
 
 
 
Jon
Guest
Posts: n/a
 
      27th Nov 2006


It may be of interest to note that "Grey" <(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
> Supposing I have a number of identical laptops running XP SP2 and I want
> to
> disable the CD ROM or some other device in Device Manager. Is there a way
> I
> can create and run a script which I can run from each machine to do this
> for
> me to same a great deal of time and mouse clicking?
>
> Graham
>
>


You could do it with 'devcon' (download link halfway down the page)

http://support.microsoft.com/kb/311272/




--
Jon

Endless Loop: n.,see Loop, Endless.
Loop Endless: n.,see Endless Loop.

 
Reply With Quote
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      27th Nov 2006

"Grey" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Supposing I have a number of identical laptops running XP SP2 and I want

to
> disable the CD ROM or some other device in Device Manager. Is there a way

I
> can create and run a script which I can run from each machine to do this

for
> me to same a great deal of time and mouse clicking?
>
> Graham
>
>


Instead of disabling the CD drive, you could remove its drive letter
with the following 3-line batch file. Note that the third line is very long!

@echo off
set drive=
for /F %%a in ('fsutil fsinfo drives ^| find "\" ^| find /i /v "Drives"') do
fsutil fsinfo DriveType %%a | find /i "CD-ROM" > nul && mountvol %%a /d


 
Reply With Quote
 
=?Utf-8?B?SWFu?=
Guest
Posts: n/a
 
      27th Nov 2006

You can also make a lot of these changes with a .reg registry patch-file.
See http://ww.theeldergeek.com for info on registry settings.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LUA Script in a Batch File josh123 Windows XP 1 21st Apr 2010 05:53 PM
A script/batch to kill a batch file from scheduled tasks? Bogdan Windows XP Configuration 1 31st Jul 2009 06:05 AM
Re: Help with a Batch file script (FTP) Peter Foldes Windows Vista General Discussion 0 1st Aug 2008 12:03 AM
Need help with my Batch file script ... =?Utf-8?B?RGFu?= Windows XP Help 0 23rd Nov 2006 04:21 PM
Batch File/Script/Other LDL Windows XP General 1 8th Apr 2005 10:53 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:03 PM.