1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14.

Friday, April 9, 2010

Your CD drive or DVD drive is missing or is not recognized by Windows or other programs

Problem description

Your CD drive or DVD drive is missing or not recognized by Windows or other prog...

Your CD drive or DVD drive is missing or not recognized by Windows or other programs, so you cannot play or access a CD or DVD. This issue might have occurred after you installed, uninstalled, or updated a program or Windows Vista.

Fix it for me

To fix this problem automatically, click the Fix this problem link. Then, click...

To fix this problem automatically, click the Fix this problem link. Then, click Run now button from the Automated Troubleshooting Services page and follow the steps in this wizard.

Fix this problem
Microsoft Automated Troubleshooting Services: Your CD or DVD drive cannot read or write media


Now go to the "Did this fix the problem?" section.

Let me fix it myself
Important This section, method, or task contains steps that tell you how to modi...

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:

Windows 7

To resolve this problem on a computer that is running Windows 7, use the Open Playing and Burning CDs, DVDs, and Blu-ray Discs troubleshooter. For more information about how to open this troubleshooter in Windows 7, visit the following Microsoft Web site:

If this troubleshooter does not work, try to use the Hardware and Devices troubleshooter. For more information about how to open this troubleshooter in Windows 7, visit the following Microsoft Web site:



Windows Vista

  1. Click Start, and then click All Programs.
  2. Click Accessories, and then click Run.
  3. Type regedit, and then click OK.

    If you are prompted for an administrator password or for a confirmation, type the password, or click Allow.
  4. In the navigation pane, locate and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E965-E325-11CE-BFC1-08002BE10318}
  5. In the right pane, click UpperFilters.

    Note You may also see an UpperFilters.bak registry entry. You do not have to remove that entry. Click UpperFilters only. If you do not see the UpperFilters registry entry, you still might have to remove the LowerFilters registry entry. To do this, go to step 8.
  6. On the Edit menu, click Delete.
  7. When you are prompted to confirm the deletion, click Yes.
  8. In the right pane, click LowerFilters.

    Note If you do not see the LowerFilters registry entry, unfortunately this content cannot help you any further. Go to the "Next Steps" section for information about how you can find more solutions or more help on the Microsoft Web site.
  9. On the Edit menu, click Delete.
  10. When you are prompted to confirm the deletion, click Yes.
  11. Exit Registry Editor.
  12. Restart the computer.

Now go to the "Did this fix the problem?" section.



Windows XP

  1. Click Start, and then click Run.
  2. In the Open box, type regedit, and then click OK.
  3. In the navigation pane, locate and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E965-E325-11CE-BFC1-08002BE10318}
  4. In the right pane, click UpperFilters.

    Note You may also see an UpperFilters.bak registry entry. You do not have to remove that entry. Click UpperFilters only. If you do not see the UpperFilters registry entry, you still might have to remove the LowerFilters registry entry. To do this, go to step 7.
  5. On the Edit menu, click Delete.
  6. When you are prompted to confirm the deletion, click Yes.
  7. In the right pane, click LowerFilters.

    Note If you do not see the LowerFilters registry entry, unfortunately this content cannot help you any further. Go to the "Next Steps" section for information about how you can find more solutions or more help on the Microsoft Web site.
  8. On the Edit menu, click Delete.
  9. When you are prompted to confirm the deletion, click Yes.
  10. Exit Registry Editor.
  11. Restart the computer.

Did this fix the problem?

Windows 7 Click Start , click Computer, and then see whether the drive is liste...

Windows 7

Click Start, click Computer, and then see whether the drive is listed.

Windows Vista

Click Start, click Computer, and then see whether the drive is listed.

Windows XP

Click Start, click My Computer, and then see whether the drive is listed.


If the drive is not listed, remove and reinstall the existing drivers.


Remove and reinstall drivers


If the drive is not listed, remove and reinstall the existing drivers. To do this, follow these steps:

Windows 7

  1. Click Start, and then click Control Panel.
  2. Click System and Security, click System, and then click Device Manager.

    Note If Control Panel is in Classic View, double-click System, and then click Device Manager.


    If you are prompted for an administrator password or for a confirmation, type the password, or click Allow.
  3. In Device Manager, expand DVD/CD-ROM drives, right-click the CD and DVD devices, and then click Uninstall.
  4. When you are prompted to confirm that you want to remove the device, click OK.
  5. Restart the computer.

After the computer restarts, the drivers will be automatically installed

Windows Vista

  1. Click Start, and then click Control Panel.
  2. Click System and Maintenance, click System, and then click Device Manager.

    Note If Control Panel is in Classic View, double-click System, and then click Device Manager.
    If you are prompted for an administrator password or for a confirmation, type the password, or click Allow.
  3. In Device Manager, expand DVD/CD-ROM drives, right-click the CD and DVD devices, and then click Uninstall.
  4. When you are prompted to confirm that you want to remove the device, click OK.
  5. Restart the computer.

After the computer restarts, the drivers will be automatically installed.

Windows XP

  1. Click Start, and then click Control Panel.
  2. Click System and Maintenance, and then click System,
  3. On the Hardware tab, click Device Manager. If you are prompted for an administrator password or for a confirmation, type the password, or click Allow.
  4. In Device Manager, expand DVD/CD-ROM drives, right-click the CD and DVD devices, and then click Uninstall.
  5. When you are prompted to confirm that you want to remove the device, click OK.
  6. Restart the computer.

After the computer restarts, the drivers will be automatically installed.

Next steps

If this method did not help you, you might want to use the Microsoft Customer Su...

If this method did not help you, you might want to use the Microsoft Customer Support Services Web site to find other solutions. Some services that the Microsoft Customer Support Services Web site provides include the following:

If you continue to have questions after you use these Microsoft Web sites, or if you cannot find a solution on the Microsoft Support Services Web site, click the following link to contact Support: http://support.microsoft.com/contactus (http://support.microsoft.com/contactus)

ODBC System DSN List Using Java

/**
* OdbcSystemDSNListUtil.java
*/
package odbc;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashSet;
import java.util.Set;

/**
* @author Nimish
* Apr 9, 2010
*/
public class OdbcSystemDSNListUtil {

public static Set getODBCSystemDNS() {
String PERSONAL_FOLDER_CMD ="HKEY_LOCAL_MACHINE\\SOFTWARE\\ODBC\\ODBC.INI";
String []command = new String[] {"reg","query",PERSONAL_FOLDER_CMD};
Set dsnList = new HashSet();
try {
Process process = Runtime.getRuntime().exec(command);
BufferedReader stream = new BufferedReader(new InputStreamReader(process.getInputStream()));
String dsn = "";
while((dsn=stream.readLine())!=null){
if(dsn.indexOf(PERSONAL_FOLDER_CMD+"\\") != -1)
dsnList.add(dsn.substring(dsn.lastIndexOf("\\")+1));
}

} catch (IOException e) {
e.printStackTrace();
}
return dsnList;
}

public static void main(String[] args) {
Set dsnList = getODBCSystemDNS();
for(String dsn:dsnList) {
System.out.println("dsn name: "+ dsn);
}
}
}

Windows Tasklist using Java

package test.process;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;

public class ProcessManager {
public static void main(String[] args) {
List testList = ProcessManager.getTaskList();
for(Task task:testList){
System.out.println(task.getImageName()+" : "+task.getMemoryUsage());
}
}

public static List getTaskList(){
List tasklist = new ArrayList();
try {
String []command = new String[] {"tasklist","/fo","csv","/nh"};
Process process = Runtime.getRuntime().exec(command);
BufferedReader input = new BufferedReader
(new InputStreamReader(process.getInputStream()));
String line ="";
while ((line = input.readLine()) != null) {
if(!line.equals("")) {
line = line.replaceAll("\"","");
Task task = new Task();
String[] taskAttributes = null;
try {
taskAttributes = line.split(",");
} catch (RuntimeException e) {
e.printStackTrace();
}
task.setImageName(taskAttributes[0]==null?"":taskAttributes[0]);
task.setProcessID(taskAttributes[1]==null?"":taskAttributes[1]);
task.setSessionName(taskAttributes[2]==null?"":taskAttributes[2]);
task.setSessionNumber(taskAttributes[3]==null?"":taskAttributes[3]);
try {
task.setMemoryUsage(taskAttributes[4]==null?"":taskAttributes[4]+taskAttributes[5]==null?"":taskAttributes[5]);
} catch (RuntimeException e) {
task.setMemoryUsage(taskAttributes[4]==null?"":taskAttributes[4]);
}
tasklist.add(task);
}
}
} catch (IOException e) {
e.printStackTrace();
}
return tasklist;
}
}
Related Posts with Thumbnails