[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 181
  • Last Modified:

windows cdplayer.ini

I need to now how to create a cd id in the same format that the cdplayer.ini file uses.

thanks for your help
0
cando
Asked:
cando
  • 2
1 Solution
 
rwilson032697Commented:
Try this (from an example in my CDPLAYER.INI file)

with TIniFile.Create('C:\Windows\CDPLAYER.INI') do
  try
    WriteInteger('2D17961','EntryType', 1);
    WriteString('2D17961, 'artist', 'New Artist');
    WriteString('2D17961, 'title', 'New Title');
    WriteInteger('2D17961', 'numtracks', 20);
    WriteString('2D17961, 'order', '');
    WriteInteger('2D17961', 'numplay', 0);
  finally
    Free;
  end;

Cheers,

Raymond
0
 
candoAuthor Commented:
works good, but how would I read all of the information for one cd from the cdplayer.ini
0
 
rwilson032697Commented:
Look at the ReadString etc methods of TIniFile. Basically do the same in my code but use the read methods instead of the write methods.

Cheers,

Raymond.
0

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now