Saved Bookmarks
| 1. |
Solve : Ghost Floppy Batch Formula Needed? |
|
Answer» December 31, 2011 Dear Forum, First, Happy New Year to y'all!!!!! What I need help on is a batch file that I can put on a floppy that can execute a Ghost.exe DOS file that is on the G:\ Drive. A little background: 1. I've been using Ghost since version 5 back in 1995. 2. I've always used a Ghost boot floppy with an Autoexec.bat file to do my bidding. 3. When Ghost 2003 came out, I could not use it with an Autoexec.bat file because I did not want to "Mark" my HDD, just too "Big Brotherish" for me. 4. I then got a hold of Ghost Corporate v7.5 and THAT worked great with my Ghost floppy sets to: Make to HDD Make to CD Make to HDD And CD CRC Check HDD Image CRC Check CD Image Restore From HDD Restore From CD Whatever I wanted to do, I just popped in the appropriate floppy and turned my computer on and Ghost did its thing. The above worked with my Windows 98SE box, but my new Windows 7 box doesn't "play nice" with Ghost Corporate v7.5 but is OK with Ghost v11.5. BUT, v11.5 is 2262 KB's so I'm FORCED to go the "Bootable CD" or "Bootable USB" Thumb Drive route. I just want to keep it via floppies! This is how I'm presently set up on my 98SE box for making an image file of C:, putting it on my HDD and then CRC checking the image: echo off GhostCE.exe -clone,mode=pdump,src=1:1,dst=G:\01_Ghost\Newest.gho -z3 -fx -sure GhostCE.exe -chkimg,G:\01_Ghost\Newest.gho -sure Soooo, what I want to do is put the Ghost v11.5 DOS exe in a folder on the G:\ Drive and have the boot floppy run an Autoexec.bat file to go to it and do what I want it to do, be it Make to HDD or CRC Check CD Image, etc... The folder I made is G:\!-Ghost and I named the Ghost file Ghost115.exe. Can anyone come up with a batch file to give me joy? Thanks in advance. Bug_zsSolved!!! Trial and error got me the answer that worked perfectly on my Windows 7 box from a boot floppy: echo off G: CD \!-Ghost Autoexec.batSpoke too soon. For some reason I now GET the proverbial "Bad command or file name". I even tried going with... echo off G: CD \!-Ghost Ghost115.exe NO joy! HELP!!!!!! Bug_zsWhen you boot with the floppy to a DOS prompt, is the G: drive visible? And is the !-Ghost folder visible? And the Ghost115.exe file? Try this: Code: [Select]echo off cd /d G:\^!-Ghost (Not sure if the cd /d will work, I recall something about limiting the use of switches in boot sequences) Ghost115.exe The ^ "escapes" the "!" and makes it so the batch program SEES it as a character instead of the start of a variable, which is what it is currently seeing and likely the reason you get the "Bad command or file name". The cd /d will work in cmd prompt in Windows, but I am uncertain of it's availability with the process you are describing. If it does not work, you original two line approach should still work for it. For future reference, it is usually a good idea to limit special character usage in folder names you are wanting to use batch files with and on and in.I have no idea why he gave his directories names using non-standard characters...his batch may work but he's asking it to do something it will not. Ghost recognises all command functions ...always has...but not if there written outside the lines. Also curios is why there are no Path statements or variables... Quote from: Raven19528 on January 04, 2012, 11:35:56 AM The ^ "escapes" the "!" and makes it so the batch program sees it as a character instead of the start of a variable, which is what it is currently seeing and likely the reason you get the "Bad command or file name". It can't see it as the start of a variable. MS-DOS does not use ! as a variable delimiter. He mentions autoexec.bat, which means he is using real MS-DOS, not Windows NT family cmd (often wrongly and confusingly called "DOS"). !-GHOST is a legal folder name in MS-DOS. Quote The cd /d will work in cmd prompt in Windows It won't work in MS-DOS, whose version of the CD command lacks the /D switch. Quote from: Salmon Trout on January 04, 2012, 11:58:10 AM It can't see it as the start of a variable. MS-DOS does not use ! as a variable delimiter. He mentions autoexec.bat, which means he is using real MS-DOS, not Windows NT family cmd (often wrongly and confusingly called "DOS"). !-GHOST is a legal folder name in MS-DOS.Yeah I know there are a lot of differences between DOS and cmd, I just have no idea what all of the differences are. Perhaps then the reason he is getting the bad command error message is due to the fact that he has the "\" preceding the folder he is searching for. Though I do believe patio's question about the lack of path statements and variables should also be addressed prior to troubleshooting. No sense in troubleshooting a product that won't do what he wants when it is working properly. Quote from: Raven19528 on January 04, 2012, 12:08:38 PM Perhaps then the reason he is getting the bad command error message is due to the fact that he has the "\" preceding the folder he is searching for. That should work just fine. I wonder if MS-DOS can even see the G: partition. Quote from: Salmon Trout on January 04, 2012, 12:35:58 PM I wonder if MS-DOS can even see the G: partition. That may be the issue. I wonder if the G: is being mounted prior to this running. The OP may need to put mount.exe on the boot disk and mount the G: drive prior to running this particular command sequence in the batch file. Quote from: Raven19528 on January 04, 2012, 12:53:53 PM That may be the issue. I wonder if the G: is being mounted prior to this running. The OP may need to put mount.exe on the boot disk and mount the G: drive prior to running this particular command sequence in the batch file. It might be an NTFS partition, or a non-AHCI SATA drive. I suspect G: is an optical drive...which means his batch isn't even close to working... January 4, 2012 Dear Forum, First, thank you for your extensive replies. A bit of background and mini-update... 1 TB HDD with the following C: 75 Gigs NTFS Windows 7 64 Bit D: 25 Gigs NTFS Program Files E: 15 Gigs NTFS F: 600 Gigs Fat32 G: 30 Gigs Fat32 Ghost Images H: to M: various sizes all Fat32. Z: is my DVD Burner (1st thing I always do on an install is set CD\DVD to Z) I built a "Standard Ghost Bootable CD/DVD--on Steroids" from NightOwl at the Radified Ghost board: http://nightowl.radified.com/bootcd/bootcdintro.html I added the ahci.sys file, for Ghost to see SATA CD\DVD DRIVES from: http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en&cc=us&prodTypeId=12454&prodSeriesId=1844973&swItem=wk-61401-1&prodNameId=1844975&swEnvOID=2096&swLang=13&taskId=135&mode=4&idx=0 and added this line in the config.sys file: device=ahci.sys /d:nightowl I added an Autoexec. bat file with this in it: echo off Ghost115.exe -clone,mode=pdump,src=1:1,dst=1:5\01_Ghost\Newest.gho -z3 -fx -sure Ghost115.exe -chkimg,1:5\01_Ghost\Newest.gho -sure and booting from the DVD in the BIOS, Ghost made an image of my C: drive, CRC checked (or Verified) it and put it into my G:'s 01_Ghost folder. So, at least half of the problem is solved, but getting a FLOPPY to trigger the "MakeHDD.bat" is still in need of solving. Tried: echo off CD /D G:\^!-Ghost Ghost115.exe Got "Bad command or file name" >It might be an NTFS partition, or a non-AHCI SATA drive. As you can see from above, G: is Fat32 and my SATA is set to AHCI >I suspect G: is an optical drive As you can see from above, Z is my DVD burner Bug_zsPossibly the OP thinks that drive letters which are assigned in Windows are known about, and used by, MS-DOS booted from a floppy disk? Again, I'll suggest that you do a little research and take a look at mount.exe. This is going to be needed if you are wanting to designate drive letters on an empty HD. For Vista and 7, mountvol.exe was introduced. You can take a look at some of the documentation on it here. It is very similar to mount.exe, so take your pick as to which you would like to use, though mountvol does provide some additional functionality. Utilize either of these utilities to mount the drives that you are referencing later in your boot process. You will need to conduct the research to find what some standard mount points are on HDDs. Also, as a REMINDER, the command prompt that you are using on your Win 7 is very different from the MS-DOS that is being run during an OS install. Keep this in mind as you continue this adventure. |
|