GSS 2.5 auto copy files to X: drive
I am creating a boot disk using WinPE, and I am using a batch file to present a custom set of options to the user before executing a Ghost32 task. Originally, I have been copying & pasting the entire script into the START.BAT on the last screen of the Ghost Boot Wizard (FYI GBW version = 11.5.0.2141). However, as the script gets larger (more options added), this gets more cumbersome and error-prone. I would like to simply replace the START.BAT commands with a call to a batch file that I add using the Additional Files screen.
Here is my problem: it does not appear that files added using the Additional Files get copied to the X: drive, even if I put them into the Ghost directory. I cannot simply call <CDROM>:\MyStart.bat either, because I do not know (programmatically) which drive is the CDROM drive. I wrote a nice little batch file that will find the CD based on the label (defaulting to GHBOOTCD, of course), however now I run into the same problem in that I do not know where to find the FINDCD.BAT file. I may end up copying & pasting the contents of FINDCD.BAT in the START.BAT, then I can use its results to call <CDROM>:\MyStart.bat. This almost gets me right back where I started, though.
One thing I did notice is that the UNATTEND.XML is different on my <CDROM>:\GHOST vs. X:\GHOST. The CDROM version contains two commands: copy.bat (which I noticed copies everything from C:\GHOST to X:\GHOST) and the start.bat; while the X: version only contains the start.bat command. I'm guessing this might have something to do with this problem as well.
Am I missing something?
Thanks.
Comments
Try this.
The files as you have noted do not get coppied to the ram drive they are stuck on the cd only. So you can call to your MyStart.bat that you add in the GBW by entered this in the start.bat in the GBW
If C:\MyStart.bat C:\MyStart.bat
If D:\MyStart.bat D:\MyStart.bat
If E:\MyStart.bat E:\MyStart.bat
If F:\MyStart.bat F:\MyStart.bat
and so on as many drive letters as you needed. This way no matter what the cd drive letter is you are covered.
As a side note you may consider upgradeing to the 2165 build it has some items updated to allow for proper adding of files when the Add files function is used in the GBW.
Cheers.
If you find this post helpful please give it a thumbs up!
If you find that this solves your problem please mark it as the solution!
Would you like to reply?
Login or Register to post your comment.