Gotcha Posted July 20, 2004 Share Posted July 20, 2004 Hi,Small problemWhen the dvd boots it first displays the boot image i made and after that i can choose to boot from dvd or not.How can i adjust cdshell to first ask to boot from dvd and then display the image.If anyone could help me tnx alot Link to comment Share on other sites More sharing options...
Gotcha Posted July 20, 2004 Author Share Posted July 20, 2004 I mean the Splash.csi image Link to comment Share on other sites More sharing options...
ArmyDoc Posted July 20, 2004 Share Posted July 20, 2004 For a bootable Cd or DVD to display the 'Press a key to boot from CD' message, a file called bootfix.bin has to be in the root of the drive.You'll also have to edit your cdshell.ini to remove the message from there. Link to comment Share on other sites More sharing options...
Gotcha Posted July 20, 2004 Author Share Posted July 20, 2004 Thets not the problem,when i start my pc it first shows the splsh creen i made and then the option "boot from dvd".I want to switch thisso first the option "boot from dvd" and after pressing enter it shows the splash screen.Gotcha Link to comment Share on other sites More sharing options...
ArmyDoc Posted July 20, 2004 Share Posted July 20, 2004 To my knowledge this can't be done with CDShell alone - it will always process and display your splash image before starting the cdshell.ini script. Something you can try is to eliminate the splash.csi file and have cdshell.ini call a graphic after a custom 'boot from...' message - that should be easy enough, just rename splash.csi to enterfilenamehere.csi and call 'showimage enterfilenamehere.csi' from cdshell.ini Link to comment Share on other sites More sharing options...
Gotcha Posted July 20, 2004 Author Share Posted July 20, 2004 with what command can i display an image,i used "showimage /boot.csi" with the boot.csi in the root now it looks like this :boot:clsprint "\n"print "Druk op Enter om van DVD te starten... \n"getkey 10 boot 0x80if $lastKey == key[enter]; then goto menuif $lastKey == key[esc]; then boot 0x80# When no key found...goto boot# Printing the Interfacemenu:showimage /boot.csiset textColor= color[grey on black]set boldColor= color[cyan on black]clsprint c "\cXXÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ \n\n"print c "\cXXAIO-Boot DVD\n\n"print c "\cXXÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ \n\n"print "Menu \n\n"print "1) Windows XP Pro \n"print "2) Windows 2000 \n"print "3) Windows 98 SE \n"print "4) ERD Commander 2003 \n"print "5) Norton Ghost 2003 \n"print "7) Kill Disk \n\n"print "Menu Opties\n\n"print "O) Opnieuw opstarten \n"print "ESC) Start PC Normaal \n"print c "\n"MainKey:getkey 30 boot 0x80if $lastKey == key[1]; then chain /PRO1.DATif $lastKey == key[2]; then chain /2PRO.DATif $lastKey == key[3]; then memdisk /98SE.IMAif $lastKey == key[4]; then chain /ERD1.DATif $lastKey == key[5]; then memdisk /NGH.IMAif $lastKey == key[7]; then memdisk /KDSK.IMAif $lastKey == key; then rebootif $lastKey == key[esc]; then boot 0x80endTnx for helping Link to comment Share on other sites More sharing options...
ArmyDoc Posted July 21, 2004 Share Posted July 21, 2004 Ah, well, what you're trying to do in your .ini (try putting it in between code-tags) is redundant: displaying an image, and also typing the interface; you should only use one of them. More info here (in Dutch!)Example of show image:boot:menu:menu_Key:clsshow image mainmenu.csigetkey 60 boot 0x80if $lastKey == key[1]; then goto Windowsif $lastKey == key[2]; then goto Utilityif $lastkey == key[3]; then goto Infoif $lastKey == key[q]; then goto endif $lastKey == key[r]; then rebootif $lastKey == key[h]; then goto Helpif $lastKey == key[b]; then boot 0x80Also, there are two slight errors in you file:if $lastKey == key; then rebootShould probably read key[o], by the look of your interface# When no key found...goto bootIs redundant, it only points back to the beginning of the same section. The 'getkey 10' line will make sure your PC boots form the HDD Link to comment Share on other sites More sharing options...
Gotcha Posted July 22, 2004 Author Share Posted July 22, 2004 Okay tnx i got it to show the image after choosing to boot from dvd but it stays on the screen, now my script looks like this with the .csi in the same dir as cdshell.iniboot:clsprint "\n"print "Druk op Enter om van DVD te starten... \n"getkey 10 boot 0x80if $lastKey == key[enter]; then goto menuif $lastKey == key[esc]; then boot 0x80# Printing the Interfacemenu:set textColor= color[grey on black]set boldColor= color[cyan on black]clsprint c "\cXXÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ \n"print c "\cXXAIO-Boot DVD\n"print c "Hoofdmenu\n"print c "\cXXÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ \n\n"print "\cXX Menu \n"print "1) Windows XP Professional \n"print "2) Windows 2000 Professional \n"print "3) Windows 98 Second Edition \n"print "\n"print "4) ERD Commander 2003 \n"print "5) Norton Ghost 2003 \n"print "6) Overige DOS Tools \n\n"print "\cXX Menu Opties\n"print "Q) Opnieuw opstarten \n"print "ESC) Start PC Normaal \n"print c "\n"MainKey:show image dvd.csigetkey 30 goto menuif $lastKey == key[1]; then chain /PRO1.DATif $lastKey == key[2]; then chain /2PRO.DATif $lastKey == key[3]; then memdisk /98SE.IMAif $lastKey == key[4]; then chain /ERD1.DATif $lastKey == key[5]; then memdisk /NGH.IMAif $lastkey == key[6]; then goto toolsif $lastKey == key[q]; then rebootif $lastKey == key[esc]; then boot 0x80tools:set textColor= color[grey on black]set boldColor= color[cyan on black]clsprint c "\cXXÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ \n"print c "\cXXAIO-Boot DVD\n"print c "Overige DOS Tools\n"print c "\cXXÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ \n\n"print "\cXX Menu \n"print "1) ATA Password Remove-Set tool \n"print "2) Autoclave HD Eraser \n"print "3) Harddrive Clone Maxx \n"print "4) CMOS Password Recovery \n"print "5) System Speed Test \n"print "6) Kill Disk \n"print "7) Smart Boot Manager \n\n"print "\cXX Menu Opties\n"print "ESC) Terug naar Hoofdmenu \n"print c "\n"toolsKey:getkey 30 goto toolsif $lastKey == key[1]; then memdisk /ATAT.IMGif $lastKey == key[2]; then memdisk /ACLA.IMGif $lastKey == key[3]; then memdisk /CLMA.IMGif $lastKey == key[4]; then memdisk /CMPW.IMGif $lastKey == key[5]; then memdisk /SYST.IMGif $lastKey == key[6]; then memdisk /KDSK.IMAif $lastKey == key[7]; then memdisk /SMBT.IMGif $lastKey == key[esc]; then goto menuendBTW,How did you configure your cdshell.ini to display a loading bar thingy in the boot section wich displays the time thats left until normal boot. (saw it on your site) Link to comment Share on other sites More sharing options...
ArmyDoc Posted July 22, 2004 Share Posted July 22, 2004 For a progress bar place the following code at the beginning of your ini file, and loose the boot: section:#Progress Bar StartBegin:set progress_bar = "\\ac\\c0F \\c87±±±±±±±±±±±±±±±±±±±± \\c0F"clearset textCursorY=9print "\ac\c0F \c87±±±±±±±±±±±±±±±±±±±±\c0F \n"SET TEXTCURSORX = 0; SET TEXTCURSORY = 23print c "Press any key to boot from DVD... (You have 20 seconds)\n"print c "[Expletive deleted]"#set textCursorX = 28;SET TEXTCURSORY = 2print c "\c0AMulti-OS Boot DVD"set textCursorX = 30set textCursorY = 9set counter = 21BOOT_Counter_Start:set counter = $counter - 1if $counter == 0; THEN GOTO BOOTC############################## change color of bar here# else print "\cF2Û"# will give a green bar## else print "\c14X"# will give a red X WITH BLUE BACKGROUND#############################else print "\cF2Û"getkey 1 goto BOOT_Counter_Start# Progress Bar EndIt refers to a section called BOOTC, so make sure you have that or edit the line to reflect your own ini. Also, it is set up for a countdown of 20 secs. If you need more (or less for that matter) time, you'll have to edit the first 'set counter' line, and change the number of ± characters in the lines above it. It may not line up perfectly, so be careful. Don't change the 'set textcursor' lines or the front and back of the progress bar won't match up.I should mention that it's not my own code, but I'll be d*mned if I can remeber the exact source. It was mentioned on this forum but I couldn't find the relevant post. If someone recognises their own code in this - sorry dude, no disrespect!A few more remarks:- if you use show image you don't need the whole 'printing the interface' section above it; this will do (but change MainKey: to menu_key: if not because it doesn't work then for consistency):menu:MainKey:show image dvd.csigetkey 30 goto menuif $lastKey == key[1]; then chain /PRO1.DATif $lastKey == key[2]; then chain /2PRO.DATif $lastKey == key[3]; then memdisk /98SE.IMAif $lastKey == key[4]; then chain /ERD1.DATif $lastKey == key[5]; then memdisk /NGH.IMAif $lastkey == key[6]; then goto toolsif $lastKey == key[q]; then rebootif $lastKey == key[esc]; then boot 0x80- Dude, edit your post and xxx out your reg codes! 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