Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Disc Drive  (Read 7121 times)

0 Members and 1 Guest are viewing this topic.

EchoLdrWolf316

    Topic Starter


    Intermediate

  • Don't worry, Javascript is just Flash on speeeeed.
    Disc Drive
    « on: August 18, 2008, 07:48:19 PM »
    Is there a code that can open or close a disc drive? Batch file or other?

    computeruler



      Egghead

      Thanked: 63
      • Yes
      • Yes
    • Experience: Experienced
    • OS: Mac OS
    Re: Disc Drive
    « Reply #1 on: August 18, 2008, 07:55:57 PM »
    http://www.dreamincode.net/code/snippet92.htm thats visual basic though or you could go to start my computer and right click on your cd drive and click eject
    « Last Edit: August 19, 2008, 06:57:32 AM by Carbon Dudeoxide »

    Dias de verano

    • Guest
    Re: Disc Drive
    « Reply #2 on: August 19, 2008, 06:33:47 AM »
    prank? first remote shutdown, now open/close cd drive?


    EchoLdrWolf316

      Topic Starter


      Intermediate

    • Don't worry, Javascript is just Flash on speeeeed.
      Re: Disc Drive
      « Reply #3 on: August 19, 2008, 06:35:22 AM »
      not a prank, i just wanted to see if i could make a batch file (to run a program or code) to open and close my drives.

      Carbon Dudeoxide

      • Global Moderator

      • Mastermind
      • Thanked: 169
        • Yes
        • Yes
        • Yes
      • Certifications: List
      • Experience: Guru
      • OS: Mac OS
      Re: Disc Drive
      « Reply #4 on: August 19, 2008, 06:36:48 AM »
      Why.........?

      I know exactly what Dias is talking about...I've had hands-on experience...........

      qinghao



        Intermediate
      • Don't think your self special
        Re: Disc Drive
        « Reply #5 on: August 19, 2008, 06:40:12 AM »
        not a prank, i just wanted to see if i could make a batch file (to run a program or code) to open and close my drives.
        I have done this before.

        EchoLdrWolf316

          Topic Starter


          Intermediate

        • Don't worry, Javascript is just Flash on speeeeed.
          Re: Disc Drive
          « Reply #6 on: August 19, 2008, 06:42:03 AM »
          Why.........?

          I know exactly what Dias is talking about...I've had hands-on experience...........

          im not trying to play a prank on my friends, ive read past posts. im not goina make their drives open, close open, close open, close open, close open, close open, close open, close. if i wanted to do that, i'd dowload a simple program off Cnet. Im just looking for code for myself

          EchoLdrWolf316

            Topic Starter


            Intermediate

          • Don't worry, Javascript is just Flash on speeeeed.
            Re: Disc Drive
            « Reply #7 on: August 19, 2008, 06:44:47 AM »
            not a prank, i just wanted to see if i could make a batch file (to run a program or code) to open and close my drives.
            I have done this before.
            how? batch file, Visual Basic? or a DOS command line?

            qinghao



              Intermediate
            • Don't think your self special
              Re: Disc Drive
              « Reply #8 on: August 19, 2008, 06:53:45 AM »
              Code: [Select]
              Option Explicit
              Private Declare Function CDdoor Lib "winmm.dll" Alias "mciSendStringA" _
              (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, _
              ByVal uReturnLength As Long, ByVal hwndCallback As Long) As Long

              Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
                  Select Case Button
                      Case 1:
                          Call CDdoor("set CDAudio door open", 0, 0, 0)
                      Case 2:
                          Call CDdoor("set CDAudio door closed", 0, 0, 0)
                      Case 4:
                          End
                  End Select
              End Sub
              this VB code I think you know how to use it .so....

              EchoLdrWolf316

                Topic Starter


                Intermediate

              • Don't worry, Javascript is just Flash on speeeeed.
                Re: Disc Drive
                « Reply #9 on: August 19, 2008, 06:59:02 AM »
                Code: [Select]
                Option Explicit
                Private Declare Function CDdoor Lib "winmm.dll" Alias "mciSendStringA" _
                (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, _
                ByVal uReturnLength As Long, ByVal hwndCallback As Long) As Long

                Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
                    Select Case Button
                        Case 1:
                            Call CDdoor("set CDAudio door open", 0, 0, 0)
                        Case 2:
                            Call CDdoor("set CDAudio door closed", 0, 0, 0)
                        Case 4:
                            End
                    End Select
                End Sub
                this VB code I think you know how to use it .so....
                ::) ::) ::) ::) uhh?  ::) ::) ::) save as what?


                qinghao



                  Intermediate
                • Don't think your self special
                  Re: Disc Drive
                  « Reply #10 on: August 19, 2008, 11:03:24 AM »
                   :-\
                  ....................
                  Try google ;D

                  EchoLdrWolf316

                    Topic Starter


                    Intermediate

                  • Don't worry, Javascript is just Flash on speeeeed.
                    Re: Disc Drive
                    « Reply #11 on: August 19, 2008, 01:07:09 PM »
                    lol,, ok

                    Dias de verano

                    • Guest
                    Re: Disc Drive
                    « Reply #12 on: August 19, 2008, 01:18:16 PM »
                    Do you have Nero Burning ROM installed on the machine?

                    EchoLdrWolf316

                      Topic Starter


                      Intermediate

                    • Don't worry, Javascript is just Flash on speeeeed.
                      Re: Disc Drive
                      « Reply #13 on: August 19, 2008, 01:35:27 PM »
                      Do you have Nero Burning ROM installed on the machine?
                      ??? I have a CD burner


                      Dias de verano

                      • Guest
                      Re: Disc Drive
                      « Reply #14 on: August 19, 2008, 01:38:50 PM »
                      Do you, or don't you, have a CD burning package called Nero Burning ROM?


                      EchoLdrWolf316

                        Topic Starter


                        Intermediate

                      • Don't worry, Javascript is just Flash on speeeeed.
                        Re: Disc Drive
                        « Reply #15 on: August 19, 2008, 01:42:44 PM »
                        no

                        Dias de verano

                        • Guest
                        Re: Disc Drive
                        « Reply #16 on: August 19, 2008, 01:48:45 PM »
                        That's a shame, because it comes with a command line app which can open and shut the CD drive tray.


                        EchoLdrWolf316

                          Topic Starter


                          Intermediate

                        • Don't worry, Javascript is just Flash on speeeeed.
                          Re: Disc Drive
                          « Reply #17 on: August 19, 2008, 02:05:30 PM »
                          oh

                          qinghao



                            Intermediate
                          • Don't think your self special
                            Re: Disc Drive
                            « Reply #18 on: August 19, 2008, 02:38:00 PM »
                            First I heard he ask you of Nero,I think he will tell you there is a button on the nero window,you Click it the tray of the cd drive could come out and in.

                            fortunately,he tell you the it has command line.
                            haha...

                            EchoLdrWolf316

                              Topic Starter


                              Intermediate

                            • Don't worry, Javascript is just Flash on speeeeed.
                              Re: Disc Drive
                              « Reply #19 on: August 19, 2008, 02:47:08 PM »
                                :) :P

                              Dias de verano

                              • Guest
                              Re: Disc Drive
                              « Reply #20 on: August 19, 2008, 03:21:25 PM »
                              First I heard he ask you of Nero,I think he will tell you there is a button on the nero window,you Click it the tray of the cd drive could come out and in.

                              fortunately,he tell you the it has command line.
                              haha...

                              I don't know what you are talking about, ginghao.  ::)

                              Nero Burning ROM is supplied with a command line application called Nerocmd.exe.

                              My DVD/CD drive is drive X:

                              I use it in batch files like this

                              Code: [Select]
                              nerocmd --eject --drivename X

                              nerocmd --load --drivename X




                              qinghao



                                Intermediate
                              • Don't think your self special
                                Re: Disc Drive
                                « Reply #21 on: August 19, 2008, 06:17:07 PM »
                                It's my ignorance, I don't know the NeroCmd before ,so.....
                                Now ,I have known it .Thank you.

                                by the way, my name is "qinghao" the first letter is q


                                EchoLdrWolf316

                                  Topic Starter


                                  Intermediate

                                • Don't worry, Javascript is just Flash on speeeeed.
                                  Re: Disc Drive
                                  « Reply #23 on: August 20, 2008, 06:48:15 AM »
                                  thatnk-you, i will read through those