Windows 10: Making batch script wait until optical disc is inserted

Discus and support Making batch script wait until optical disc is inserted in Windows 10 Ask Insider to solve the problem; Hey there, I hope this is the right place for this type of question. I'm currently building a small semi-automated ripping station and want a script... Discussion in 'Windows 10 Ask Insider' started by /u/ThisIsTenou, Jun 16, 2020.

  1. Making batch script wait until optical disc is inserted


    Hey there, I hope this is the right place for this type of question.

    I'm currently building a small semi-automated ripping station and want a script to wait until an optical disc is being inserted, then continue on with the next step.

    I'm pretty familiar with bash scripting, however when it comes to batch I'm a total noob. What's the best way to make this?

    submitted by /u/ThisIsTenou
    [link] [comments]

    :)
     
    /u/ThisIsTenou, Jun 16, 2020
    #1
  2. Jerry8A Win User

    Optical Drive Issue

    Hello Anak –

    Appreciate your detailed return. Your added steps really helped.

    Assuming I did the steps correctly, this is where I am now.

    Screenshot 12 shows my CD Disc shortcut on my desktop.
    Screenshot 10 shows the CD Drive shortcut listed in the “Send to” listing.
    Screenshot 11 shows the “Send to” listing after the steps were taken, but the CD drive name is not listed.

    So, it appears the steps did not work for me. And, I did try the steps, “If it still won’t do ……” and still no luck.

    What do you think?

    JerryA



    Making batch script wait until optical disc is inserted [​IMG]

    Making batch script wait until optical disc is inserted [​IMG]

    Making batch script wait until optical disc is inserted [​IMG]
     
    Jerry8A, Jun 16, 2020
    #2
  3. Julivgar Win User
    Netfix Batch Script- Fix internet connection

    Somebody please try my batch script Netfix and leave feedback so I can improve it. thank you!

    My goal is to make a troubleshooter to help the built in "Windows Network Diagnostics" fix internet connection problems. How can you help?

    1. Download/copy the code on notepad then save as "Netfix.bat" or "Netfix.cmd"

    2. Test the Batch script

    3. Provide feedback and/or suggestions

    Thank you!
     
    Julivgar, Jun 16, 2020
    #3
  4. jk4ss Win User

    Making batch script wait until optical disc is inserted

    Optical disc drive not working - OFF/ON Autoplay fixed it


    Hi all
    I had purchased a brand new HP laptop last week. It came with WinX 1024 and I eventually managed to get it updated to the latest 1511 version.
    Last thing I checked (before delivery to the intended user) was whether the optical drive worked. I was dumbfounded to find that it wouldn't read a disc. When I tried to open the drive the disc was ejected. Any disc I put it the drive just ground away continually and wouldn't open - and no sign of Autoplay.

    I spend hours - literally hours - trolling the internet for a fix.
    I tried setting different Autoplay settings with mixed and intermittent results.
    I found the registry edits but was loathe to use them because the behavior I was seeing didn't really seem to fit :
    • I could see the optical drive but discs wouldn't open when inserted
    • I could add an external optical drive and I could see it as a new drive but discs wouldn't open when inserted
    • I fiddled with the Autoplay settings - once or twice this worked but most times it didn't
    • I could add a USB stick - it was recognized by Autoplay
    • Strangely I could burn a blank disc
    • The device manager seemed to have all the right drivers and no errors (I did a re-install at one stage)
    • I checked the WinX registry against a Win 8.1 registry - it was missing NoDriveTypeAutoRun in HKCU but other posts on the internet suggested this wasn't really an issue.

    Then I decided to turn off Autoplay in the Control Panel, Save and restart the laptop.
    Voila ... I could see the discs mounted on the optical drive and I could right mouse click to open them.

    So then I turned Autoplay back on , saved and restarted the laptop.
    Autoplay started working as expected ......... what the ?????

    I'm not going to look a gift horse in the mouth at this point and I'm hoping the fix 'sticks'.

    I am also hoping that this simple fix works for someone else.
     
    jk4ss, Jun 16, 2020
    #4
Thema:

Making batch script wait until optical disc is inserted

Loading...
  1. Making batch script wait until optical disc is inserted - Similar Threads - Making batch script

  2. is there an optical disc drive for 11 - how can I insert/play dvd

    in Windows 10 Gaming
    is there an optical disc drive for 11 - how can I insert/play dvd: How can I play a DVD on Windows 11 - there is no tray in the HP pavilion desktop https://answers.microsoft.com/en-us/windows/forum/all/is-there-an-optical-disc-drive-for-11-how-can-i/2d22f6ad-f486-40f4-8a5e-9a88f1ee649e
  3. is there an optical disc drive for 11 - how can I insert/play dvd

    in Windows 10 Software and Apps
    is there an optical disc drive for 11 - how can I insert/play dvd: How can I play a DVD on Windows 11 - there is no tray in the HP pavilion desktop https://answers.microsoft.com/en-us/windows/forum/all/is-there-an-optical-disc-drive-for-11-how-can-i/2d22f6ad-f486-40f4-8a5e-9a88f1ee649e
  4. Batch scripting

    in Windows 10 Software and Apps
    Batch scripting: Hi, here's the code that I used for 3 DISM commands to start automatically after pressing a key:Code and result:Code:@echo off echo You are going to use DISM. echo 1. To check the image. echo 2. Scan your PC's health echo 3. Restore your PC'S health. echo To continue, press...
  5. Batch scripting

    in Windows 10 Gaming
    Batch scripting: Hi, here's the code that I used for 3 DISM commands to start automatically after pressing a key:Code and result:Code:@echo off echo You are going to use DISM. echo 1. To check the image. echo 2. Scan your PC's health echo 3. Restore your PC'S health. echo To continue, press...
  6. Batch scripting

    in Windows 10 Network and Sharing
    Batch scripting: Hi, here's the code that I used for 3 DISM commands to start automatically after pressing a key:@echo off echo You are going to use DISM. echo 1. To check the image. echo 2. Scan your PC's health echo 3. Restore your PC'S health. echo To continue, press any key. echo Before...
  7. PageFile.sys batch script

    in Windows 10 Virtualization
    PageFile.sys batch script: Hello, I need help writing a batch script that would configure Windows Virtual Memory based on the amount of RAM installed If you have 4 GB of RAM, set virtual memory to 8 GB (Custom size: set both initial and maximum size to 8192) If you have 8 GB of RAM, set virtual memory...
  8. Batch Scripts / Programs.

    in Windows 10 Performance & Maintenance
    Batch Scripts / Programs.: The members and quests who use this forum know how professional, informative and helpful it is! In order to help members solve their problems/issues we often ask them to run certain programs and perform certain tasks and then upload [ post ] the results to the forum for us...
  9. Optical Drives ejecting discs

    in Windows 10 Drivers and Hardware
    Optical Drives ejecting discs: The optical drives I have attached to my Win 10 PC have stopped recognizing discs. The driver installed with the latest drivers and are physically recognized by the PC. However, when a disc is inserted it is not recognized and autoplay does not happen. Furthermore, when...
  10. Windows 10, "Please insert a disc" when disc is inserted.

    in Windows 10 Drivers and Hardware
    Windows 10, "Please insert a disc" when disc is inserted.: For a while now, ive been witnessing this issue. If i insert a cd, Windows can read it. If i insert a DVD It spins then stops then says "Please insert a cd" opening the drive in the process, tried uninstalling it, got nothing. Tried cleaning the disc nothing. The drive is a...