Hello P.Johnson, Sunday, November 21, 2004, 4:46:54 PM, P.Johnson wrote:
> Hello TBUDLers, > I am trying to do a specific backup and restore using a batch file, so > that I can transfer my current TB over to my new computer. Tony Boom > has very kindly given me instructions to do so, using Winrar as my zip > program. The only problem I can see is that my TB folder is called > "TheBat2.0" for some reason (as opposed to "The Bat!"), ^^^^^^^^^ So is your program files located in directory below? "C:\Program Files\TheBat2.0" Is your mail directory located below the above directory so it would be in the directory below? "C:\Program Files\TheBat2.0\MAIL" I'll assume yes. ... <snip> > I cannot change the name of the folder (believe me, I tried). If you were logged out of TB and have WinXP Pro on NTFS file system you are probably logged in as a limited user. Even if you were logged in as Admin user I don't know if you would want to change it because TB may not work afterwards. IIRC TB directory structure saved in other files possibly registry which may throw things out of wack. > My question is, what wording, if any, do I need to change in the > following file: See below: > --------------- > @Echo off > Path C:\Program Files\WinRAR\WinRAR.exe Hopefully WinRAR is installed here on your PC so you shouldn't have to make any changes, otherwise you have to make appropriate changes. Also I run 7-Zip backup batch file from TB program directory. IIRC 7-Zip is a little picky on directory structure, and I'm not sure about WinRAR. So I am SWAG'ing it. I would try batch from Program directory "C:\Program Files\TheBat2.0\batch.bat" which would put registry in program directory to be latter compressed into backup file which would be a good thing. Otherwise you may have to run from root directory "C:\batch.bat" > Echo ************************************************ > Echo * !! Backing up The Bat registry entries !! * > Echo ************************************************ > Echo . > if exist TBbckup1.reg del TBbckup2.reg Looks to see if registry backup exists. > if exist TBbckup1.reg rename TBbckup1.reg TBbckup2.reg I would rem the above line out because you want registry backed up provided you are going to use the exact directory structure on new machine, otherwise I would just use TB backup and do a clean install with it on new machine. So just put "rem" in front of above 2 lines. > start /w regedit /e TBbckup1.reg "HKEY_CURRENT_USER\Software\RIT\The Bat!" this backs up the registry to a file name "TBbckup1.reg" which is real important for setting up later on new machine, otherwise you will have to do a clean install. When you get the .reg file on the new machine all you have to do is double click to put it in the registry. Remember you may want to do a clean install with backup from TB backup utility anyway. I am no expert here but think the only limitation on TB backup utility is to have the same directory structure below the "Mail" directory, whereas batch file backup requires both the same structure for the program AND mail files. Also the other thing to note here is how are you going to transfer the backup files to the new PC. Are they hooked up on a network, or is your mail base very small. If small then you may get away with a CD or even a floppy. It all depends upon the size. > echo. > if not exist TBbckup1.reg echo Error! Something went wrong. Backup not > echo successful. > if exist TBbckup1.reg echo Success! Your registry entries for The Bat! are > echo backed up! just an echo > Echo ************************************************** > Echo * !! Creating RAR Archive of The Bat Directory!! * > Echo ************************************************** > Echo . > if exist "C:\email\TBBackup.rar" del "C:\email\TBBackup.rar" deletes old WinRar file below the "C:\email\" directory. If you are going to use this line you will have to make sure directory structure agrees, otherwise change to whatever you want. > C:\Progra~1\WinRAR\WinRAR.exe a -u -as "C:\email\TBBackup.rar" "C:\Program > Files\The Bat!" This is the actual backup. I would assume the switches in WinRAR will backup all files in the directory and below, and WinRar is located in the same directory. So if your Mail directory is located somewhere else you will have to make changes. I am going to assume your "Mail" directory is located below the program directory and your backup is going to be in the "C:\email\" directory. This being the case then change the line to the following: C:\Progra~1\WinRAR\WinRAR.exe a -u -as "C:\email\TBBackup.rar" "C:\Program Files\TheBat2.0" > --------------- > I hope I have explained this properly. I have absolutely no experience > with batch files or this type of procedure, so please make your > response suitable for a simpleton like me. I don't know if I'm much help because it depends upon your directory structure. IIRC you may be better off just running TB backup and then doing a clean install on the new PC using the backup file. If you are going to go TB backup utility route I would suggest running Folder | Maintenance utility before the backup with selecting (1) check integrity/repair (2) purge duplicates & (3) compress. > :-) Any help any of you can provide would be very much appreciated. I tried to help, but it depends upon your file structure. TB backup may be the route to go, but I will say a batch backup is good to have because you can integrate more advanced features of WinRar which would be to backup only changes. Allie may be able to help you here because my memory tells me this is how he backs up his system. This makes it MUCH faster, then incorporate into scheduled backups or even with batch file on TB icon on desktop to run after exit. I don't mean to scare you away here, because batch backup can be good to have. It just may take a little trial and error to get it to work. -- Best Regards, Greg Strong Using The Bat! v3.0.2.7 on Windows XP 5.1 Build 2600 Service Pack 2 ________________________________________________ Current version is 3.0.1.33 | 'Using TBUDL' information: http://www.silverstones.com/thebat/TBUDLInfo.html

