Topic: CD/DVD-Drive PnP  (Read 4704 times)

CD/DVD-Drive PnP
« on: May 20, 2014, 12:38:55 PM »

fuwi

  • Code Baker
  • Chef
  • ***
  • Location: Switzerland
  • Date Registered: Nov 2012
  • Posts: 171
In Win8.1SE (i think also in Win8PESE and Win7PESE) an empty CD/DVD drive isn't shown in explorer.
And if a CD or DVD is inserted while Win8.1SE is running, the CD filesystem isn't mounted.
If access to a CD or DVD is necessary, the disk must be inserted before Win8.1SE has booted.

Any solution for this isssue?

fuwi
« Last Edit: May 20, 2014, 12:39:38 PM by fuwi »

Re: CD/DVD-Drive PnP
« Reply #1 on: May 21, 2014, 11:36:05 AM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
If access to a CD or DVD is necessary, the disk must be inserted before Win8.1SE has booted.
The CD/DVD-ROM is available in disk management but the drive letter is not assigned, here.
If it is the same for you, you can manually assign the drive letter
I do not have, on my side, the solution to make it automatically or at startup.
Also, indeed, we have the same issue in Win7, 8, 8.1 PESE

 :smile:

Re: CD/DVD-Drive PnP
« Reply #2 on: May 22, 2014, 05:50:16 AM »

fuwi

  • Code Baker
  • Chef
  • ***
  • Location: Switzerland
  • Date Registered: Nov 2012
  • Posts: 171
I'm working on a startup-utility, which checks all existent CD/DVD drives in the system. If a drive has no drive letter, a free drive letter will be assigned automatically.
I hope, in a few hours i can post it for testing.

fuwi
« Last Edit: May 22, 2014, 05:54:02 AM by fuwi »

Re: CD/DVD-Drive PnP
« Reply #3 on: May 22, 2014, 08:00:26 AM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
great, take your time  :thumbsup:

Re: CD/DVD-Drive PnP
« Reply #4 on: May 22, 2014, 01:59:44 PM »

fuwi

  • Code Baker
  • Chef
  • ***
  • Location: Switzerland
  • Date Registered: Nov 2012
  • Posts: 171
Hi Chris

Here it is:
[ Attachment Invalid Or Does Not Exist ] Edit: attachment removed (fuwi)
It works for me, even if more then one DVD drive without a driveletter is present :great:

It don't know, what is the best for autorun. AssignDvdDrvLtr.a3x seems not to start in Autorun:
Code: [Select]
ExtractFile,%ScriptFile%,Test,AssignDvdDrvLtr.a3x,%Target_Sys%
AddAutoRun,AssignDvdDrvLtr,#$pSystemRoot#$p\System32\AssignDvdDrvLtr.a3x,,4

For testing: AssignDvdDrvLtr.au3, AssignDvdDrvLtr.a3x and AssignDvdDrvLtr.exe are in AssignDvdDrvLtr.7z

Fuwi

Edit: AssignDvdDrvLtr.exe dont work in x64 build. A 64-bit compiled version is necessary.
AssignDvdDrvLtr.au3 is also not running, do to the #include.
So AssignDvdDrvLtr.a3x whould be perfect, but it doesn't start in start in Autorun...   :wacko:

Next i try to start AssignDvdDrvLtr.a3x in autorun.cmd...

Fuwi
« Last Edit: May 23, 2014, 11:08:19 AM by fuwi, Reason: attachment removed, see post #7 »

Re: CD/DVD-Drive PnP
« Reply #5 on: May 22, 2014, 05:22:33 PM »

was_JFX

  • Code Baker
  • Grand Chef
  • *****
  • Date Registered: Dec 2010
  • Posts: 1074
Seems the LetterSwap tool with option /HideLetter removes the letter.

Re: CD/DVD-Drive PnP
« Reply #6 on: May 22, 2014, 06:50:54 PM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
OH, Yes, of course that's it, well seen :thumbup:

Thanks for AssignDvdDrvLtr fuwi, good example of using diskpart in au3, to keep :thumbsup:
I have not checked if StringReplace( ,"Volume ".. ) is localized.

I'll remove /HideLetter in the default option, thanks  :smile:

Re: CD/DVD-Drive PnP
« Reply #7 on: May 23, 2014, 11:02:40 AM »

fuwi

  • Code Baker
  • Chef
  • ***
  • Location: Switzerland
  • Date Registered: Nov 2012
  • Posts: 171
Thanks for AssignDvdDrvLtr fuwi, good example of using diskpart in au3, to keep :thumbsup:
I have not checked if StringReplace( ,"Volume ".. ) is localized.

I think, the diskpart identifier "Volume" is the same in all OS languages and is not localized. I checked this e.g in german OS:
ila_rendered

Just for fun, i made some modifications in AssignDvdDrvLtr.au3. Now it runs directly in Win8.1SE (and other projects), no need to compile it.
And i found a way to autostart a .au3 file with AddAutoRun:
Code: [Select]
ExtractFile,%ScriptFile%,Folder,AssignDvdDrvLtr.au3,%Target_Sys%
AddAutoRun,AssignDvdDrvLtr,%SystemRoot%\system32\cmd.exe,/c#$sstart#$s#$pSystemRoot#$p\System32\AssignDvdDrvLtr.au3,4

I have tested in x86 and in x64 build, works perfect  :thumbsup:

But if we get the same by removing the option "/HideLetter" in LetterSwap tool, then my AssignDvdDrvLtr.au3 is useless...  :lamo:

* AssignDvdDrvLtr.7z (1.61 kB - downloaded 163 times.)

fuwi
« Last Edit: May 23, 2014, 11:04:58 AM by fuwi »

Re: CD/DVD-Drive PnP
« Reply #8 on: May 23, 2014, 12:39:46 PM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
For fun also and to know :thumbsup:
"Volume" does not seem to be localized for western language, it is also OK here in french.
But unfortunately, like other dos commands, it does not look good in other languages (with the advanced search):

Russian:


Simplified Chinese: http://hi.csdn.net/attachment/201109/28/0_1317178058XYcc.gif

In the LetterSwap plugin, I removed the /HideLetter switch in the default Autorun string  :thumbsup:

:cheers:

Re: CD/DVD-Drive PnP
« Reply #9 on: May 30, 2014, 11:48:25 AM »

oldie

  • Apprentice
  • *
  • Location: Germany
  • Date Registered: May 2014
  • Posts: 2
hello fuwi, ChrisR and all the other.
I have the some problem as you in your first entry.
I have solved it like this:
I build a script whit your "AssignDvdDrvLtr.7z" and copy the license for "au3" (penetwork.script) in it.
Then add a line for Autorun for the script. finished
Thanks for this verry god work !

Re: CD/DVD-Drive PnP
« Reply #10 on: June 02, 2014, 02:42:48 PM »

fuwi

  • Code Baker
  • Chef
  • ***
  • Location: Switzerland
  • Date Registered: Nov 2012
  • Posts: 171
Good!  :great:

But if you read the postings above, you can see, the real reason for these hidden cd/dvd-drives is a default-setting in the LetterSwap script.
If you delete the substring '/HideLetter' in Apps -> System Tools -> LetterSwap (Autorun string) then the problem is solved without my 'AssignDvdDrvLtr'

The Autorun string should look like this:
ila_rendered

Make sure that the LetterSwap script is selected. Now you can delete the 'AssignDvdDrvLtr' script and make a new build.

fuwi

 

Powered by EzPortal