Questions tagged [cd-rom]

A CD-ROM (stands for Compact Disc Read-only memory) is a pre-pressed compact disc that contains data accessible to, but not writable by, a computer for data storage and music playback.

102 questions
9
votes
3 answers

How to eject CD using WMI and Python?

Using Windows' WMI library, how can I eject CD rom mounted in a specific CD/DVD drive? I am asking for sources from WMI docs or examples since I am using wmi.py library on Python. It would be great if solution satisfies Windows computer newer than…
ahmet alp balkan
  • 42,679
  • 38
  • 138
  • 214
5
votes
3 answers

What's the simplest way to detect CDROM media removal/insertion in Linux

What's the simplest way to detect CDROM media removal and insertion in Linux? I want to write some simple code to handle this. For example, just bind an event for media insertion and implement the handler. Thanks!
flypen
  • 2,515
  • 4
  • 34
  • 51
5
votes
2 answers

How to identify the type of disc in a CD-ROM drive using WinAPI?

I'm writing an application that's going to work with audio CDs and mixed CDs. I would like to have a method of determining whether there is an audio or mixed-type (with at least one audio track) disc currently in the drive that the application…
Daniel Kamil Kozar
  • 18,476
  • 5
  • 50
  • 64
4
votes
2 answers

How can I detect if CDRom is a DVD on Linux

I'm looking to create a function in C++ running on Linux that returns true if the CDRom media is a DVD and false if its anything else (e.g. Audio CD). I have been using ioctl with linux/cdrom.h. I tried using the DVD_READ_STRUCT but it always…
Bunnies
  • 41
  • 1
4
votes
1 answer

ISO 9660: How to locate children of a directory

Ok so I'm currently working on an assignment in c++ to read from a 9660 level 1 iso image. The goal of the assignment being unpacking the contents to disk. I can get the primary volume descriptor, and can navigate to the root directory and its…
iceflow19
  • 752
  • 4
  • 12
4
votes
0 answers

How to interact with CDs?

I know python pretty well as a language but I only know a small portion of the massive standard library and I just realized I have absolutely no idea how I would read or write to a CD in Python, let alone any other language. I imagine the file…
temporary_user_name
  • 35,956
  • 47
  • 141
  • 220
3
votes
3 answers

Read audio CD track information

How can I read the track information (author, track title, length) for an Audio CD using C#?
kjv
  • 11,047
  • 34
  • 101
  • 140
3
votes
0 answers

How do you detect pre/post-gap to compute exact track length in a CD-ROM?

Using IOCTL_CDROM_READ_TOC_EX, a naive way to compute the exact length of a CD-ROM track would be to assume that audio tracks have a pre-gap of 2 seconds and a data track followed by a different track type has a post-gap of 2 seconds. But…
aybe
  • 15,516
  • 9
  • 57
  • 105
3
votes
1 answer

is there a way to check if the cd drive has a CD with python

I'm trying to make a program that checks when a cd is inserted with the specific name "PlayMe" and then have the program play the one track on it. The computer is a raspberry pi4 with raspbian. I have tried just scanning for when the file tree…
panther001
  • 33
  • 4
3
votes
1 answer

How can I read a directory on iso9660 from the path table when the table does not include size?

According to the spec for the structure of an iso9660 / ecma119, the path table contains records for each path, including the location of the starting sector and its name, but not its size. I can find the directory entry, but don't know how many…
deitch
  • 14,019
  • 14
  • 68
  • 96
3
votes
3 answers

Detecting CDROM media removal/insertion in Linux

Is there a clean way to detect or receive events when a user inserts or removes a CD on a Linux platform?
AgentLiquid
  • 3,632
  • 7
  • 26
  • 30
3
votes
0 answers

Windows IOCTL for reading raw CD-ROM data not returning error correction data

I am attempting to make a program that extracts raw sector data from optical discs of various types, starting with CDs (data and audio). This is nothing special, and the concept itself is fine and working on Linux with similar IOCTLs. The problem I…
hooby3dfx
  • 936
  • 1
  • 8
  • 18
3
votes
1 answer

How do I copy files from a CD-ROM in [Files] using Flags: external?

I'm writing a new installer for an old cd-rom game that has a 16-bit installer, the installer will need to be on the hard disk and be able to copy files from the original disc. I already have a script set up that can install the game if all the game…
user477276
  • 367
  • 5
  • 20
3
votes
3 answers

How to change CD ROM Letter?

I want to change letter from D to Z: Set-WmiInstance -InputObject ( Get-WmiObject -Class Win32_volume -Filter "DriveLetter = 'd:'" ) -Arguments @{DriveLetter='Z:'} Error: Set-WmiInstance : Cannot bind argument to parameter 'InputObject' because it…
FoxZ
  • 59
  • 1
  • 2
  • 6
3
votes
2 answers

Check CD-ROM Tray Status

I have written a small piece of code to open/close a cd/dvd drive tray using the DeviceIoControl API and the proper IOCTL but I don't seem to be able to check the tray status. According to the msdn page…
Altar
  • 143
  • 1
  • 6
1
2 3 4 5 6 7