View Full Version : My EZ-Backups .bat file
reboot
10-04-2000, 02:08 PM
I just noticed a glaring error in my own code.
It's not critical, but terribly annoying (to me anyhow).
Can anyone spot it?
Hint: It's got something to do with the directory structure.
edit: I just realized there's more than one. I guess I cranked it out too late last night.
Hopefully Dok will have the corrected code posted on the page ASAP.
Anyone having problems with the current code, please email me for a fixed version. I'll also post it on my website.
TIA
edit: Now includes backing up Netscape bookmarks!
(I sure hope Dok updates the page SOON!)
[Edited by reboot on 10-04-2000 at 04:26 PM]
M. A. Dockter
10-04-2000, 03:51 PM
updated!
reboot
10-04-2000, 04:15 PM
Whew! Thanks Dok.
reboot
10-05-2000, 04:52 PM
Check out the article again.
It now includes an EZ-Restore (restore.bat) for the backups.
Also wrote a Shopvac.bat crash recovery.
Look in the Windows 9x forum.
tacoeater
10-06-2000, 10:18 AM
I have downloaded most of your files and saved most of your batch files but when I read your post about the error in your code I was not able to decide which program you were talking about. What is it and were would I have gotten it?
Thanks
reboot
10-06-2000, 11:41 AM
The first edition of the EZbackups code included far too many errors (just annoyances really), but the kicker was the pathing. I didn't specify that it must be run from root c:\ so if it was run from the desktop( or anywhere else), it created a bunch of useless folders with nothing in them, then the restore.bat wouldn't work either.
I tried a work around for being able to use it from any directory, but it's just too complicated to path out, especially for the restore part.
Keeping everything in one place in the backups.bat allows for much easier code in the restore.bat
I'm working on getting it working from any folder, and the restore as well, but there are just too many variables.
I can get the restore to find the backups folder and restore the stuff, but the backups just don't work unless run from root c:
Things to try inside bat file
Rem start of file....commands are grouped
C:
cd\
cd windows
rem or better yet
C:
cd\
cd %windir%
If %windir% == C:\WINNT exit
echo Your windows directory is %windir%
rem "both must be true"
if exist win.com if exist system.ini ren system.DA0 system.tmp
rem
if not exist win.com exit
Rem end
Just for fun at the command line type
dir \ /s | find /I "bytes"
echo %temp%
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.