Alanoll Posted January 3, 2005 Share Posted January 3, 2005 (edited) doesnt workwhat part doesn't work?add a PAUSE after the CDIMAGE line to make sure the CMD file executes. If it doesn't, guess I did the INF wrong Just go into the registry and edit it manually and then see if it works.EDIT: OH! Forgot to save the CMD file as cdimage.cmd in %systemdrive%\Windows\System32 Edited January 3, 2005 by Alanoll Link to comment Share on other sites More sharing options...
MCT Posted January 3, 2005 Author Share Posted January 3, 2005 i changed the path to %24% (systemdrive) to make it easier for testinginf is ok, its the cmd file i think, cuz its not picking up the directoryEDIT: inf file reads (from registry) c:\cdimage.cmd "%1" which is what i think u were going forbut the cmd file reads cdimage.exe -l""G:\nlite xp":"~3systemroot1" ""G:\nlite xp".iso" Link to comment Share on other sites More sharing options...
Yzöwl Posted January 6, 2005 Share Posted January 6, 2005 (edited) Sorry I forgot about this thread, yes it's the cmd file that needs changing, try this, it works for me!Put this in your inf:HKCR,Folder\shell\MakeBootISO\command,,,"%11%\bootiso.cmd ""%1"""And this for your bootiso.cmd:::Automatic naming bootable ISO script@echo offSET DIRE=%1TITLE Creating Bootable ISO Image of %DIRE%ECHO.ECHO Removing any possible attributes set on %DIRE% and its subfolders...ATTRIB -R -H "%DIRE%" /S /DFOR /F %%G IN ("%DIRE%") DO SET LABL=%%~nGECHO.ECHO Creating ISO...CDIMAGE.EXE -L"%LABL%" -h -j1 -m -o -B%SystemRoot%\system32\xpBoot.img %DIRE% %DIRE%.isoECHO.PAUSEEXITFor this both the cmd, img and CDIMAGE are all set for the system32 directory.Note: Things dont go quite so well if you have spaces in your foldername, also although the ATTRIB command will work with long filenames, you will need to remember that the ISO label can only accept eleven characters. For best results then, try to keep all folders to be processed to eleven charcters or less with no spaces.You would need to add extra code if you wish to fix the spaces in folder name and character length issues.PS You will also have to create a data.iso cmd and add its respective entry into your inf, using this as a guide, for that right click option too.Hope this helps![EDIT]I have fixed the spaces problem, and done a little tweaking to create a simple tool for this feature, please see this post, Thanks![/EDIT] Edited January 9, 2005 by Yzöwl 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