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

Author Topic: Disc Drive  (Read 7107 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?