deleting backup files
Diane Gaskill
dgcaller at earthlink.net
Tue Jul 24 01:48:18 PDT 2007
Ben,
Why do you need a VB script? A simple batch file works fine.
Run a DOS window from the directory you want to clean up and then run the
following batch file. Copy the text to Notepad and save it as cleanfm.bat or
whatever you want to call it. Save it to a directory in the path or add the
directory to the path. I assume you know about paths.
BTW, I've been using this .bat for at least 14 years and a general purpose
one like it for 20 years. Never had either of them delete anything they
weren't supposed to.
@echo off
echo.
echo Deleting the following files from the current directory:
dir *.backup.* *.lck
echo.
del *.backup.* *.lck
You can also add *recover*.* to the list to delete recovery files after you
save them to the original file names.
If you have a tree of directories with archived files in them, I have a neat
little utility called sweep.com that executes a .bat or an .exe in all of
the directories in the tree. Free.
Hope this helps,
Diane Gaskill
============================================
-----Original Message-----
From: framers-bounces+dgcaller=earthlink.net at lists.frameusers.com
[mailto:framers-bounces+dgcaller=earthlink.net at lists.frameusers.com]On
Behalf Of B Hechter
Sent: Monday, July 23, 2007 10:13 AM
To: framers at lists.frameusers.com
Subject: deleting backup files
Hi Framers,
Before attempting this, thought I would inquire if any VB wizard out there
has a script snippet to share for deleting FM .backup files from archival
directories.
Thanks!
Ben
--
Ben Hechter
objectives.ca
Technical Performance Support Solutions
Vancouver BC
e: bhechter at objectives.ca
w: www.semitake.com
_______________________________________________
You are currently subscribed to Framers as dgcaller at earthlink.net.
Send list messages to framers at lists.frameusers.com.
To unsubscribe send a blank email to
framers-unsubscribe at lists.frameusers.com
or visit
http://lists.frameusers.com/mailman/options/framers/dgcaller%40earthlink.net
Send administrative questions to listadmin at frameusers.com. Visit
http://www.frameusers.com/ for more resources and info.
More information about the framers
mailing list