• Announcements

    • xper

      MSFN Sponsorship and AdBlockers!   07/10/2016

      Dear members, MSFN is made available via subscriptions, donations and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, become a site sponsor and ads will be disabled automatically and by subscribing you get other sponsor benefits.
Nanaki

A New Cd-switching Utility

217 posts in this topic

CDswitch 0.8.4

What?

Well, the only CD/DVD-switching utility (I found) on this board didn't seem to do what I needed, so I made myself a new one. I've put it online if anyone else wants to give it a go. By now it's way more advanced than any other CD-tool out there.

Features?

Compatible with: batchfiles, RunOnceEx, XPlode, ... all install methods I guess.

Can be run at: T-12 (cmdlines.txt), RunOnceEx, GuiRunOnce (haven't tested any others, maybe I'll do that soon)

Works with both CD, DVD and probably the future optical media like BluRay 'n stuff. :P

I'm going to divide the features in three modes, to keep it understandable:

Normal Mode (with a GUI and all features)

  • Pops up a box asking for a disc with a certain label. It won't go away until that disc is entered in the drive you specified. When a wrong or no disc is inserted, that drive ejects again. The only thing you have to do is insert the disc, nothing more (no clicking OK or pressing ENTER).
  • Detect the drive you want to use by specifying drive letter, drive number (first drive, second drive, ...) or by detecting the drive with a certain disc in it (by file or label).
  • Supress AutoRun / AutoPlay so nothing pops up when a new disc is inserted
  • Play a sound to notify you
  • Launch an application or file after the correct disc is inserted (like a new batchfile/RunOnceEx/...) and eventually wait hidden until that application is closed again (handy for one-application-discs).
  • Logging-capabilities
  • Customizable: your own image (JPG/GIF/BMP), set transparency, change the label (font face/colour/size/weight/location/italic/underline/strikethrough) or hide it.
  • Exit anytime by hitting ESC.

Silent Mode (no GUI)

  • Eject or close all drives or one drive
  • Detect the drive you want to use by specifying drive letter, drive number (first drive, second drive, ...) or by detecting the drive with a certain disc in it (by label or file).

Variables mode (write away drive letters to a variable)

[*] Create or delete variables from all drives (%CD1%, %CD2%, ...).

[*] Detect the drive you want to write to a variable by specifying drive letter, drive number (first drive, second drive, ...) or by detecting the drive with a certain disc in it (by label or file). (%CDDRIVE%)

Screenshots

This is the stuff you see when you don't customize anything:

cdswitch08.PNG

Same window, but with some transparency, borderless, and showing off some label-changes you can apply. You can make it more pretty of course:

cdswitch08fubar.PNG

Using it

Basic usage is pretty simple:

cdswitch LABEL D:

This will launch cdswitch, ejecting drive D: and searching for the disc with the label "LABEL".

If you want to use more parameters, they are all explained in the help-file.

As the number of features grows, I decided it was a bit hard to explain them all (I did tho), so I created another app to simplify all of it:

cdswitchgenerator02.PNG

First, pick your mode on the top left (all explained in the beginning of this post), then check/fill in what you want or need and press "Generate and copy". The parameters itself are displayed in the textbox,but you can also paste a full batchfile/RunOnceEx/XPlode-entry in your script after clicking the button. If you want some explanation about a certain item, just rest your mouse on it. All of them have a tooltip.

Updating from previous versions

- The parameter "/w" has been renamed to "/rw".

- There's a new default image, if you don't like it, just put the contents of this archive in the same folder as CDswitch. It'll restore the old image.

- Variables Mode has been rewritten, all parameters have changed!

Download

CDswitch 0.8.4 (169k) -- the actual program

CDswitch parameter generator 0.1 (161k) -- to generate parameters on an easy way

CDswitch Help 16/07/2005 (213k) -- the help-file

Retro image (23k) -- the old CDswitch-look (from versions 0.4 to 0.7)

New since previous release

- General improvements and bugfixes.

- Rewritten Variables Mode fully and Silent Mode a bit.

- New default image.

- Detect the drive you want to use with "/f:VALUE". VALUE being a file.

- "/b" parameter to hide the border

- "/l" parameter to override displayed text

- "/s" parameter to display a sound

- ErrorLevel is now set on how CDswitch exits

- More lay-out settings for labels (underline/italic/strike)

- Added .INI-support (more to come in 0.9)

- Added *DRIVE*-variable to refer to inserted disc (in 0.8.2)

- No longer does the drive eject when it shouldn't (in 0.8.2)

- Use "/wl" and "/wt" to move the location of the window itself (in 0.8.4)

The full changelog is attached to this post.

Note on future releases

(08/08)

0.9 will be focused on working with multiple drives. Bear with me, as it takes some time to implement, and it's vacation.

1.0 will see a rewrite of the helpfile, complete with examples and how-to's.

Other features, improvements and fixes will be implemented down the road.

Report your feedback please. :) Thanks for trying it out ^^

changelog.txt

Edited by Nanaki
0

Share this post


Link to post
Share on other sites

Low interest? :)

Well, I know I'm interested in this. Graphical way to change CDs during uA is a great addition!

As for lack of posts in here.... that's got to be because topics just keep running away from main index. And then, ppl normally post only when they have a question, so....

Keep up the good work Nanaki - I'd like to see how this goes ahead to capture attention of users. :thumbup

0

Share this post


Link to post
Share on other sites

Thanks :)

0.3b:

- Tray now opens when no disc is inserted

- When the correct disc is already present, the tray won't eject

- The disc-letter must now be supplied

0

Share this post


Link to post
Share on other sites

0.3 (20-03)

- Code clean-up, it's a bit faster now

- Error repressing of parameters, informing you about what you did wrong

- Instead of "f:" as a drive now "f" can also be used.

- Hitting ESC will exit the program

- The supplied drive is checked if its a CD/DVD-drive and if it exists

There, that's enough for today. ^^

0

Share this post


Link to post
Share on other sites

I like it....

perhaps when my setup moves from one DVD to two I'll use it :P Should be anytime now....

0

Share this post


Link to post
Share on other sites

How did you do that?!? I'm still on two discs and I think I have a lot. :)

I still have to implement Visual Studio .net though. >_<

0

Share this post


Link to post
Share on other sites
How did you do that?!? I'm still on two discs and I think I have a lot. :)

I still have to implement Visual Studio .net though. >_<

Photoshop, Acrobat Projessional, Office 2003, Visual Studio Architect, Dreamweaver, Steam (won't include the complete cache as it alone takes two DVDs so I only include CS and CS:Source), PowerDVD, VMWare + Virtual PC.

I was thinking of adding Starcraft,Warcraft 3 and a few others just for fun.

0

Share this post


Link to post
Share on other sites

That's all?

Why leave it at just one OS+apps and one games disc? Why not add a music disc and then a whateverelseyoucanthinkof disc?

One of these days your uA is going to explode under the sheer weight of all that you have put in it. :P

Anyways, I hope you use RW discs? (because otherwise you'll be wasting discs like insane)

0

Share this post


Link to post
Share on other sites
That's all?

Why leave it at just one OS+apps and one games disc?  Why not add a music disc and then a whateverelseyoucanthinkof  disc?

One of these days your uA is going to explode under the sheer weight of all that you have put in it. :P

Anyways, I hope you use RW discs?  (because otherwise you'll be wasting discs like insane)

Indeed. 4 RW's. 2 for the current working release, 2 for the one I'm working on. That way, if I screw up, I still got a working copy :whistle:

0

Share this post


Link to post
Share on other sites

- All DriverPacks

- ACDSee, Acrobat7, Azureus, BSplayer, DC++, Dreamweaver, Fireworks, Firefox, Irfanview, Java, Kaspersky, KCeasy + FastTrack, Kerio, mIRC, msAntiSpyware, MSN, Photoshop, PowerToys, Thunderbird, FileZilla, Flash/Shockwave, all codecs, Real, Quicktime, WiMP10, Office 2k3, Nero + NeroVision + LanguagePacks, OpenOffice 2b, Paint.NET, Spybot, TrueDownloader, VMware, VMware Tools (for testing), Winamp, WinRAR, WinSCP, XPize, .NET Framework, Regshot, SiSoftware Sandra, VB6 runtimes and Steam (HL one and CS:S). All with their own seperate configurations.

- All the current Hotfixes (installed seperatly)

- XPlode

- My spiffy app ^^

Total: 973 MB

O.o

0

Share this post


Link to post
Share on other sites

Looks very neat. Looking forward to testing it. Thanks.

If found to be stable, perhaps the moderators can add this to the download list.

0

Share this post


Link to post
Share on other sites
Looks very neat. Looking forward to testing it. Thanks.

If found to be stable, perhaps the moderators can add this to the download list.

Which download list? You mean the one on the Unattended site? If so, then the moderators don't have control over it. I do :P And I already like it better then the one written by devil (no offense)

0

Share this post


Link to post
Share on other sites
If found to be stable

It's perfectly stable to be used in your discs. :)

And I already like it better then the one written by devil

Which one's that? Maybe I could learn. ^^

0.4a (21-03):

- GUI variabled updated

- Image files can now be of different size. Make 'em as large as you want, the app detects the size. :)

- cdswitchback.jpg, cdswitchback.gif and cdswitchback.bmp can now be used. If multiple are found: JPG > BMP > GIF

download here

Edited by Nanaki
0

Share this post


Link to post
Share on other sites
I meant in Unattended Tools

http://www.msfn.org/board/index.php?showtopic=32957

As to this one:

http://unattended.msfn.org/global/downloads.htm

I find having two lists somewhat inconsistent.

Here's the difference....

One is maintained by a forum member, where as the other is by me. Also notice, that BESIDES CMDOW, all the others are hosted on MSFN's servers.

0

Share this post


Link to post
Share on other sites

Hmm, implementing CloseTray shouldn't be to hard, neither should ejecting all drives. I'll work on it later. I can't make it work in DOS tho, CDswitch needs Windows API's to run.

I'm open to suggestions by the way. :) (but don't ask for alpha channel support, it can't be done [yet] :P)

0

Share this post


Link to post
Share on other sites

0.4b (22-03): download

- Resaved base JPG, now optimal quality

- Cut size by more than half

- Integrated base JPG into executable, it is now single-exe app again. When no supplied image is found, the base image will be used.

- File properties are now correct ^^

Well, now it's ONE file again, and smaller than the previous. It's nothing "spectacular" (as far as possible for a utility like this ;)).

Edited by Nanaki
0

Share this post


Link to post
Share on other sites

Thanks :) I always appreciate that ;)

<span style='font-size:9pt;line-height:100%'>

0.4 (23-03):download -- --

- Added label support with everything customizable

- Adjusted base image to support the above

- New parameter system

- Most of the stuff can now be configured

- New GUI-core to support transparent labels

- A lot of code has been replaced or rewritten

- Added silent mode. This allows to eject/close all or one drive(s) with no GUI.

- New function to support the above

- A custom picture can now be defined via a parameter

- Transparency. Alpha channel between 0 and 255 can be defined

</span>

New base-GUI:

cdswitch2.png

Showing transparency:

cdswitcht.png

Well, it's a pretty big release this time. First, I think about everything can be configured now, check the first post for an updated "tutorial". :)

Second, you can now close/open a tray or all trays without any window spawning. This is what CDR does I think.

That's about it, enjoy :P

Edited by Nanaki
0

Share this post


Link to post
Share on other sites

Wow, this is a great utility! If and when I breach the 4.37GB mark with my current unattended disc, will CD-Switch work in conjuntion with WPI? i.e. can it be made in such a way that the 2nd disc is only requested if you have selected to install anything from disc 2 with WPI?

0

Share this post


Link to post
Share on other sites
Wow, this is a great utility!  If and when I breach the 4.37GB mark with my current unattended disc, will CD-Switch work in conjuntion with WPI? i.e. can it be made in such a way that the 2nd disc is only requested if you have selected to install anything from disc 2 with WPI?

that would have to be internal programming of WPI itself, and not this program.

0

Share this post


Link to post
Share on other sites

Well, I don't know much about WPI, but if it's linear like XPlode 'n stuff it would work like a charm.

See, I use it like this:

- I install programs from the first disk as normal

- Next, I use this program as "an installer", making XPlode/whatever launch it.

- When the second disk is inserted, this program closes, whereafter XPlode continues with the next installer, now reading from the next disk.

If you can work with conditional statements in WPI, perfect! If not, you'll just have to place a checkbox "CHECK THIS TO MAKE SURE THE FOLLOWING APPLICATIONS CAN BE INSTALLED"... or something like that. :P

Oh, PNG and animated GIF are supported in the next version. I just have to get rid of one lousy bug, but it's vacation now and I don't feel like looking at code. ^^

0

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.