Jump to content

read date and time of recording of the dvd


Recommended Posts

Link to comment
Share on other sites

'm customizing a DVD of Windows 7 ...

added a startup command in the DVD for it to execute a program ...

wanted this program to date verificase DVD burning or real serial number of dvd ...

so difficult to copy the same ...

because this is a custom dvd hard work of my company, so the officials could not do anything anywhere.

Edited by Oraculo
Link to comment
Share on other sites

someone has more ideas to help me?

Not an ideal or guaranteed solution but you could compare the media ID of the disk being used against the original disk using a 3rd party app like Imgburn or something similar.

Using Imgburn as an example you could do something like:

#Include <string.au3>

$ORIG_ID = 'Media ID of your disk' ; 'YUDEN000-T03-00'
$Source_Drive = ; Your prefered method of getting the DVD drive letter.
$Imgburn_Path = $Source_Drive & '\Path\To\Imgburn.exe'
$File = 'C:\DVD_Info.txt' ; Temp file

RunWait($Imgburn_Path & ' /MODE READ /SRC ' & $Source_Drive & ' /INFO "' & $File & '" /CLOSEINFO', "", @SW_HIDE)

$hFile = FileOpen($File, 0)

If $hFile = -1 Then
    MsgBox(0, "Error", "Unable to open file.")
    Exit
EndIf

$Read = FileRead($hFile)

;Parse the file for the media ID of the disk being used
$DVD_ID = _StringBetween($Read, 'Disc ID: ', @CRLF)
FileClose($hFile)
FileDelete($File)

;Check the media ID against the original
If $DVD_ID[0] <> $ORIG_ID Then
    _Pirate()
EndIf

Func _Pirate()
    MsgBox(262160, "", "This is not an original disk.")
    ; do your stuff
EndFunc

Somebody making a copy could be using the same media as your company, but I would imagine the chances are quite slim.

Link to comment
Share on other sites

have you replace this line?

$Source_Drive = ; Your prefered method of getting the DVD drive letter.

ok

problem solved ...

someone here know any other program similar to imgburn ....

so I can use it to read media reports dvd

Link to comment
Share on other sites

There are other programs that will read the media ID from a disk, but I don’t know of one that accepts command line arguments.

A couple are:

ADVDInfo (you will need wnaspi32.dll in the same folder for it to work).

DVD Identifier.

They are both GUI only apps that require user input so you will need to use ControlGetText, ControlRead, etc.. to do what you want.

How is using Imgburn failing for you?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...