December 29, 200421 yr Author Ok, Thanks: now I know that DISKPART could not make a distinction between a CD reader and a CD burner; so I have to find another way (reading registry: can be done but not easy to work on retrieved data).Stay on the line: I am going to work on it
December 31, 200421 yr Hey mdes... I just wanted to let you know that I figured out how to do this pretty easily.... Im using DISKPART with a script that selects volume numbers than assigns the letter....ie:diskpart /s drives.txtdrives.txtselect volume 0 assign letter=I noerrselect volume 1 assign letter=J noerrselect volume 4 assign letter=P noerrselect volume 3 assign letter=D noerrselect volume 5 assign letter=E noerrThis works like a charm and I have no issues with my CDROM drives as well. Do you still want the info you emailed me about?Thanks again.
December 31, 200421 yr Author Hi Durex,That's just what mapdrive is doing, but automaticaly Do you still want the info you emailed me about?If you have some minutes to do it: yes, so I will be able to improve my little mapdrive
December 31, 200421 yr nice tool... i search a long time for this tool but i´m too stupid to use it what preparatory work must i do?? thx for your support.
January 1, 200521 yr Author I updated MAPDRIVE.CMD with a new version: see the first post of this thread.News:- Correction of something (now, reassignment in nearly 100% working).- Many DVD & CD could be used instead of only one ot both.- Drives keeping the same letter, are not de/re-assigned.- Variables renaming to be more clear.- Better logfile (with error messages from DISKPART).- When launched with a parameter, only the log file is created, no de/re-assignement are done (this is for test purpose).Note:- The SLEEP.EXE is available in the Windows Server 2003 Resource Kit Tools.- The corresponding translation of the search string could be found in files "xxx-xxx-csv-WindowsXP.csv" from the Microsoft FTP site. Happy New Year
January 1, 200521 yr Author @Durex: Thanx a lot @WebWilli: Please read the first post (or download the batch file and read the comments)
January 1, 200521 yr ok, it works the german string is"Der angegebene Buchstabe wurde diesem Laufwerk bereits zugewiesen."
January 2, 200521 yr Author the german string is"Der angegebene Buchstabe wurde diesem Laufwerk bereits zugewiesen."@WebWilli: Thanks a lot : I hope others will give their own language string Note: In the first post of this thread, I upload a new version. Edited January 2, 200521 yr by mdes
January 9, 200521 yr Can this file be ran more eraly in the install? Like at t-39?It look like it would being a simply .cmd file.I am trying to deside if I should do this, or use bart-PE to use DISKPART after the Text-mode Setup.
February 20, 200521 yr Sorry to revive a dead thread. I have been using this command file for my unattended windows Installs with no problems from RunonceEx.Now, im gonna be using my applications from CD and as durex has pointed out this may prove to be a hurdle, not if we can run the .cmd from cmdlines.txtIs this possible?
February 20, 200521 yr Thanks but i would like to get this one working. Just so i know the limitations because i have had a small and simple brainstorm.@echo offcmdow @ /HIDSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY%\001 /VE /D "Drive Letter Assignment" /fREG ADD %KEY%\001 /V 1 /D "%systemdrive%\MapDrive.cmd ENU >%SystemDrive%\MapDrive.log 2>&1" /fFOR %%d IN (c: d: e: f: g: h: i: j: k: l: m: n: o: p: q: r: s: t: u: v: w: x: y: z:) DO IF EXIST %%d\CD.TXT SET CDROM=%%dREG ADD %KEY% /V TITLE /D "Installing applications" /fREG ADD %KEY%\002 /VE /D "Mozilla Firefox 1.0 + Extensions" /fREG ADD %KEY%\002 /V 1 /D "%CDROM%\Applications\Firefox\Firefox.exe /s" /fREG ADD %KEY%\002 /V 2 /D "%systemdrive%\install\Applications\Firefox\Setup.exe -MS -IRA" /fREG ADD %KEY%\002 /V 3 /D "%CDROM%\Applications\Firefox\Profile.exe /s" /fREG ADD %KEY%\002 /V 4 /D "%systemdrive%\install\Applications\Firefox\Firefox.cmd" /fREG ADD %KEY%\002 /V 5 /D "%systemdrive%\install\Applications\Firefox\Clean.cmd" /fREG ADD %KEY%\005 /VE /D "Logitech Setpoint for MX1000" /fREG ADD %KEY%\005 /V 1 /D "%CDROM%\Applications\Setpoint\Setpoint-Installer.exe" /fREG ADD %KEY%\005 /V 1 /D "pskill.exe QuickTour2.exe" /fREG ADD %KEY%\010 /VE /D "Java 5.1 Runtime" /fREG ADD %KEY%\010 /V 1 /D "%CDROM%\Applications\java\java11-Installer.exe /s" /fREG ADD %KEY%\012 /VE /D ".NET Framework 1.1 SP1" /fREG ADD %KEY%\012 /V 1 /D "%CDROM%\$OEM$\$1\install\Applications\netframe\netfxsp11.exe" /fREG ADD %KEY%\015 /VE /D "Kerio Personal Firewall 4.1.2" /fREG ADD %KEY%\015 /V 1 /D "%CDROM%\Applications\kpf\kpf412.exe /S /V\"/qn REBOOT=Suppress\"" /fREG ADD %KEY%\020 /VE /D "WinAmp 5.07" /fREG ADD %KEY%\020 /V 1 /D "%CDROM%\Applications\winamp\winamp.msi /qb-! INI="%CDROM%\Applications\winamp\winamp.ini"" /fREG ADD %KEY%\025 /VE /D "WinRar 3.14" /fREG ADD %KEY%\025 /V 1 /D "%CDROM%\Applications\WinRAR\wrar341.exe /s" /fREG ADD %KEY%\025 /V 2 /D "REGEDIT /S %CDROM%\Applications\WinRAR\cascade.reg" /fREG ADD %KEY%\030 /VE /D "MSN Messenger 6.2" /fREG ADD %KEY%\030 /V 1 /D "%CDROM%\Applications\MSN\MsnMsgs.msi /QB-!" /fREG ADD %KEY%\030 /V 2 /D "REGEDIT /S %CDROM%\Applications\MSN\msn.reg" /fREG ADD %KEY%\031 /VE /D "MSN Messenger Plus! 3" /fREG ADD %KEY%\031 /V 1 /D "%CDROM%\Applications\MSN\MsgPlus3.exe /SilentInstallNoSponsor" /fREG ADD %KEY%\031 /V 2 /D "pskill.exe MsgPlus.exe" /fREG ADD %KEY%\031 /V 3 /D "pskill.exe msnmsgr.exe" /fREG ADD %KEY%\035 /VE /D "Adobe Reader 7.0" /fREG ADD %KEY%\035 /V 1 /D "%CDROM%\Applications\adbrdr\acroread7s.exe" /fREG ADD %KEY%\040 /VE /D "ABC BitTorrent Client" /fREG ADD %KEY%\040 /V 1 /D "%CDROM%\Applications\abc\abc.exe /S" /fREG ADD %KEY%\045 /VE /D "Media Codecs" /fREG ADD %KEY%\045 /V 1 /D "%CDROM%\Applications\codecs\codecs.cmd" /fREG ADD %KEY%\050 /VE /D "Adobe Photoshop CS" /fREG ADD %KEY%\050 /V 1 /D "%CDROM%\Applications\pscs\AdobeCS-Installer.exe" /fREG ADD %KEY%\050 /V 2 /D "%CDROM%\Applications\pscs\settings.exe /s" /fREG ADD %KEY%\055 /VE /D "Scite Source Code Editor" /fREG ADD %KEY%\055 /V 1 /D "%CDROM%\Applications\scite\scite.exe /VERYSILENT /NORESTART" /fREG ADD %KEY%\060 /VE /D "GDATA AntiVirus Kit 2004" /fREG ADD %KEY%\060 /V 1 /D "%CDROM%\Applications\avk\installer.exe" /fREG ADD %KEY%\065 /VE /D "Direct Connect 0.688" /fREG ADD %KEY%\065 /V 1 /D "%CDROM%\Applications\directcon\DCPlusPlus.exe /S" /fREG ADD %KEY%\070 /VE /D "Ahead Nero Ultra 6.3" /fREG ADD %KEY%\070 /V 1 /D "%CDROM%\Applications\nero\nero.exe" /fREG ADD %KEY%\075 /VE /D "PerfectDisk 7.0.3" /fREG ADD %KEY%\075 /V 1 /D "%CDROM%\Applications\PerfectDisk\PD7-Installer.exe" /fREG ADD %KEY%\080 /VE /D "MicroSoft AntiSpyware Beta 1" /fREG ADD %KEY%\080 /V 1 /D "%CDROM%\Applications\Msanti\MSAnti-installer.exe" /fREG ADD %KEY%\085 /VE /D "Net Transport" /fREG ADD %KEY%\085 /V 1 /D "%CDROM%\Applications\nettrans\NT187.exe /SP /VERYSILENT /NOCANCEL /NORESTART" /fREG ADD %KEY%\086 /VE /D "Microsoft Office 2003" /fREG ADD %KEY%\086 /V 1 /D "%CDROM%\Applications\Office\PRO11.msi /QB" /fREG ADD %KEY%\090 /VE /D "SmartFTP Client" /fREG ADD %KEY%\090 /V 1 /D "%CDROM%\Applications\smartFTP\SFTPNSI.exe /S" /fREG ADD %KEY%\095 /VE /D "Skype" /fREG ADD %KEY%\095 /V 1 /D "%CDROM%\Applications\skype\skypesetup.exe /SP /VERYSILENT /NOCANCEL /NORESTART" /fREG ADD %KEY%\100 /VE /D "MP3 Tagger 2.77" /fREG ADD %KEY%\100 /V 1 /D "%CDROM%\Applications\mp3\mp3tag.exe /S" /fREG ADD %KEY%\105 /VE /D "Driver Cleaner" /fREG ADD %KEY%\105 /V 1 /D "%CDROM%\Applications\Driverclean\setup.exe /S" /fREG ADD %KEY%\107 /VE /D "Crap Cleaner 1.17" /fREG ADD %KEY%\107 /V 1 /D "%CDROM%\Applications\cc\ccsetup117.exe /S" /fREG ADD %KEY%\110 /VE /D "Removing Startup Items" /fREG ADD %KEY%\110 /V 1 /D "REGEDIT /S %CDROM%\Applications\Cleanup\starting.reg" /fREG ADD %KEY%\112 /VE /D "Creating OEM Information" /fREG ADD %KEY%\112 /V 1 /D "%CDROM%\Applications\Cleanup\oemcreate.cmd" /fREG ADD %KEY%\115 /VE /D "Cleaning Up and Rebooting" /fREG ADD %KEY%\115 /V 1 /D "%CDROM%\Applications\Cleanup\clean.cmd" /fAs you can see I have rejiggled my RunonceEx.cmd. If i put mapdrive.cmd in $OEM$\$1\ then it will be copied to C:\. Then if i run it before the command to set my CDROM drive then there should be no problems because the:FOR %%d IN (c: d: e: f: g: h: i: j: k: l: m: n: o: p: q: r: s: t: u: v: w: x: y: z:) DO IF EXIST %%d\CD.TXT SET CDROM=%%dwill pickup the cd drive letter after its been assigned Cant see no problems with this method, can anyone else before i try and implement it?
February 21, 200521 yr Stupid me, of course it wont work. Its being used in a batch so when the values are written to the regitry then they will contain the wrong variables I know for a fact because i tested it last night and nothing installed.Please can someone recomend a work around? If this can be run from Cmdlines.txt then i think that will solve it but can i run it that early?If not is there another way around this? Sorry for my urgency but i need to reformat tonoight if possible I got my OCZ Rev2's here
February 21, 200521 yr Author New release of MapDrive.cmdOn the system drive, create a DRIVE-.x for each letter x that you don't want to be assigned (= reserved letters for USB Key,...).See the first post of this thread to download the batch file.ps: Sorry, but I don't receive the tracking email from this post , so, I don't see new email in my pop3 box...
Create an account or sign in to comment