Feature request - command line or similar.

Discussion in 'AnyDVD' started by iansilv, Feb 1, 2007.

  1. iansilv

    iansilv Well-Known Member

    this is really awesome to see progress on this. man, convergence is cool!
  2. iansilv

    iansilv Well-Known Member

    As long as we are running the latest version of anydvd, we should be ok with th enable-disable function, right?
  3. Binnerup

    Binnerup Active Member

    I don't see a problem in any of these - this would be awesome additions!

    I look forward to this, and to dusting off a 200 disc bulk loader...
  4. James

    James SlySoft Development Team Staff Member

    AnyTool beta available

    AnyTool (what a stupid name) can be downloaded here:


    It is a very small command line tool, which basically does what you wanted.


    AnyTool -d
    Disables AnyDVD for all drives
    Will wait for the command to execute
    EDIT: Will timeout after 10 seconds, if it somehow didn't work.

    AnyTool -e
    Enables AnyDVD for all drives
    Warning, will return immediately

    Should work with all recent AnyDVD & AnyDVD HD versions 6.x
    EDIT: Which is very nice, as you can expect all customers to have a version supported by AnyTool. It might even work with older versions, but I haven't tried or checked or cared or whatever...
    Last edited: Feb 6, 2007
  5. James

    James SlySoft Development Team Staff Member

    Some advice:
    As AnyTool is not distributed with AnyDVD, you can copy it to your program's directory. So you don't need to use ShellExecuteEx, you can use CreateProcess instead, which might be a little more straightforward.
    It is recommended to wait for AnyTool to complete.
    Do this by calling a WaitFor...() function on the AnyTool process handle.
    Again, opening the optical drives (regardless how, SPTI, FileSystem, ...) before using AnyTool is a stupid idea. :p
    Of course you don't know if a user has files open on the disc, but at least your application shouldn't. :D
  6. SamuriHL

    SamuriHL Moderator (en)

    AnyTool??? Seriously, James, AnyTool?!?!?!?! ROFLMAO! :D
  7. James

    James SlySoft Development Team Staff Member

    Sorry, my mind was blocked, couldn't think of a better name... :eek:
  8. iansilv

    iansilv Well-Known Member

    so any tool can use it? :D
  9. DetroitBaseball

    DetroitBaseball Well-Known Member

    What? AnyTool is the name of it.
  10. James

    James SlySoft Development Team Staff Member

    Maybe I should add a disclaimer...

    AnyTool is a quick hack. It is a kludge. It is a beta. It solves the problem, but it does it with a "hacky" approach, so it works with all recent versions of AnyDVD and the current AnyDVD HD beta.
    Although unlikely, it is possible that it might no longer work with future versions of AnyDVD (HD).
    I intend to update both AnyTool and AnyDVD (HD) so they can communicate better.
    At the moment AnyTool patches AnyDVD's registry settings, so you should not use AnyTool to disable AnyDVD without re-enabling it again, as this might p*ss off the user (AnyDVD would stay disabled even after a reboot).
    In general, I would not recommend to ship the current version of AnyTool with commercial products to users. The current version is for developers to take a look and provide feedback. I would wait for a final mature release before using it with commercial products.
  11. Charlie

    Charlie Well-Known Member

    What specifically would you use this for?
  12. James

    James SlySoft Development Team Staff Member

    Read the thread... :)
  13. James

    James SlySoft Development Team Staff Member

    Feedback to the AnyTool beta would be appreciated. Thank you.
  14. bhoar

    bhoar Active Member

    James -

    I am planning to use AnyDVD in a similar application to Brian's, using a robotic duplicator instead of a changer. This particular robotic duplicator both has the keypad interface and also runs XP Pro with a copy of the keypad interface on screen. You can use it as a standalone device or as a workstation by adding keyboard/mouse/monitor.

    However, I ran into some problems with the current AnyDVD trial: when AnyDVD was active, the bundled embedded software could no longer open or close the drive. Even in AnyDVD's "Safe Mode".

    For a moment, I thought AnyTool might help, but it seems unlikely that I could somehow manage to time activation/deactivation as exactly as necessary via some scripting, and even if I were able to, who knows what other incompatibility might be discovered.

    I figured if there were a compatibility problem, I'd see read/access errors. The actual symptom of lack of tray open/close just seems odd. :)

    If the above pique's your interest, what's your gut reaction here? Duplication software that's tied too strongly with the drive firmware or performing unusual low-level commands/response interactions? Conflicting filter-driver installed by the duplicator manufacturer?


    PS - not sure if this belongs on a separate thread...
  15. big_gun

    big_gun New Member

    It would be lovely if we could specify the drive to enable/disable, e.g.
    AnyTool -d E:

    Is that possible?
  16. James

    James SlySoft Development Team Staff Member

    Do you know what command packets are sent to control the duplicator? They may need to be added to AnyDVD's "pass through" table.
  17. James

    James SlySoft Development Team Staff Member

    Yes, but not with currently released AnyDVD versions.
  18. Ryan

    Ryan Member

    discid api?

    A great alternative or augmentation would be a API that could be called to get the unmodified discid without disabling anydvd
  19. James

    James SlySoft Development Team Staff Member

    Where is the "Discid" recorded on the disc?
  20. Ryan

    Ryan Member