473,378 Members | 1,383 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

getting data off a CDrom

Hi there,

I'm trying to load data from 2 different CD drives to compare the data
on them to see if they are identical. I've found the WinCDRom module
online but it doesn't seem to give access to the data at all. The only
thing it seems to do is check if there is a readable cd in a specific
drive.

Any ideas/suggestions/flames?

Thanks,

Julien

Dec 4 '05 #1
2 1144
ju*********@gmail.com wrote:
Hi there,

I'm trying to load data from 2 different CD drives to compare the data
on them to see if they are identical. I've found the WinCDRom module
online but it doesn't seem to give access to the data at all. The only
thing it seems to do is check if there is a readable cd in a specific
drive.

Any ideas/suggestions/flames?


If you're on Linux this should do the trick, i think:

$ cmp /dev/scd0 /dev/scd1
--Irmen
Dec 4 '05 #2
ju*********@gmail.com wrote:
Hi there,

I'm trying to load data from 2 different CD drives to compare the data
on them to see if they are identical. I've found the WinCDRom module
online but it doesn't seem to give access to the data at all. The only
thing it seems to do is check if there is a readable cd in a specific
drive.

Any ideas/suggestions/flames?

Thanks,

Julien

The two CDROMs should show up with drive letters attached (Windows) on
your machine. Just open the files on both machines as you would any other
file:

fp1=open(r'D:\filename1', 'r')
fp2=open(r'E:\filename2', 'r')

You could:

1) use md5 to calculate checksums on both files and compare

or

2) you could use difflib instead see:

http://docs.python.org/lib/module-difflib.html

difflib probably works best if the files are text files.

3) do something custom to compare the files, but I would
try 1) and 2) first.

Larry Bates
Dec 5 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Silvio Golubović | last post by:
I have a problem with my CDROM. It reads only original cd.
3
by: M | last post by:
I searched the FAQ for this NG and found no answers to my question... I'm writing an application in Java (I'm not a C programmer), however I need to be able to detect WHICH drive (d:\, e:\...
9
by: Paul Steele | last post by:
I am writing a C# app that needs to periodically poll for cdroms and usb storage device insertions. I've looked at the WMI functions but haven't found anything all that useful. The closest is...
2
by: Jigar Mehta | last post by:
Hye, Does anybody of you have any program or tool ready that can be used from inside my program that writes files to the CDROM (ATAPI interface) through writer??? Or is there any API or...
3
by: Fabian Braennstroem | last post by:
Hi, I look for an easy way to use the newest scipy, pyvtk, matplotlib, f2py, numpy, paraview/vtk,... on a entreprise redhat machine without administration rights. My first thought was to...
1
by: jujulal | last post by:
Hi all, How could i get CDROM Drive Letter using VB6.0 code. Where i run application that should get cdrom drive letter so, i need help.
4
by: herc | last post by:
My objective is to get the "label" information for the different volumes that are mounted. I want to display the same information as Windows Explorer. I wrote this test code with gets me the...
3
by: Ognjen Bezanov | last post by:
Hello, I am trying to control a CD-ROM drive using python. The code I use is shown below.
0
Ali Rizwan
by: Ali Rizwan | last post by:
Hi Me again. I have build up a software which fetch data from a cd, like music files and images.Now the problem is that how my software recognise that in which cdrom the required cd is inserted or...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.