RBCC Posted September 25, 2004 Share Posted September 25, 2004 I have a Windows XP SP 2 Setup that will span at least 2 CD Roms. Yes I am planing on getting a DVD +RW this Christmas, but XMas ain't here yet. Now how do I build a CD set so it asks for the proper CD when it's needed? Also is there a utility that does this for you? John Link to comment Share on other sites More sharing options...
ml20 Posted September 25, 2004 Share Posted September 25, 2004 these threads may help if you only have one cd drive.http://www.msfn.org/board/index.php?showtopic=8381http://www.msfn.org/board/index.php?showtopic=25110if you have two, just add some IF EXIST D:\CD1.TXT SET=CD1, IF EXIST E:\CD2.TXT SET=CD2, stuff in your batch to get it to find the cd in drive two. this is what i use to get 2 cds active. it looks like:IF EXIST D:\D1.txt SET CDROM=D:IF EXIST E:\D1.txt SET CDROM=E:IF EXIST F:\D1.txt SET CDROM=F:IF EXIST G:\D1.txt SET CDROM=G:IF EXIST H:\D1.txt SET CDROM=H:IF EXIST I:\D1.txt SET CDROM=I:IF EXIST D:\D2.txt SET CDROM2=D:IF EXIST E:\D2.txt SET CDROM2=E:IF EXIST F:\D2.txt SET CDROM2=F:IF EXIST G:\D2.txt SET CDROM2=G:IF EXIST H:\D2.txt SET CDROM2=H:IF EXIST I:\D2.txt SET CDROM2=I: Link to comment Share on other sites More sharing options...
CoffeeFiend Posted September 25, 2004 Share Posted September 25, 2004 You could do that in 2 lines (this is by far my most reused/recycled/reposted contents on this forum)for %%a 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 %%a:\D1.txt set CDROM=%%a:for %%a 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 %%a:\D2.txt set CDROM=%%a:I adapted it to use your file names and you can remove the drives you don't want it to seach... You could even have 2 separate variables (in case it has 2 drives and you insert a disc in each or such) and have conditionnal checks that would make it detect/ask for the next disc or such accordingly... It wouldn't be hard. Link to comment Share on other sites More sharing options...
RBCC Posted September 26, 2004 Author Share Posted September 26, 2004 Thank you for your Help!!! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now