RE: Deleting backup files
Before you read further, realize that the consequence of using a batch command to delete files can impact a lot of what you have on a computer. The samples that were previously provided, as well as the update I suggest, can dramatically change the landscape. Using this stuff incorrectly, or in the wrong place is a bit like using a backhoe to move a kids swing set. Sure, it works, and if you do it well, it works with no negative issues, but if you do it wrong the whole thing crashes down around you. SO, DON'T USE THIS CODE/BATCH FILE UNLESS YOU REALLY THINK THROUGH WHAT YOU ARE DOING. Now that the Danger Will Robinson moment has passed, let's move on. I'd suggest one more quick change to the code... The line in step 5 reads: del /s *backup* *.log *.tps *.tpdf I would suggest changing it to: del /s /q *.backup.fm *.log *.tps *.tpdf The update to *.backup.fm ensures you don't accidently delete a file named, for example, create_backups.fm which you don't want to remove, but create_backups.backup.fm WOULD be deleted. The addition of /q runs quiet and won't prompt you for anything, it will just wipe files. Also, I have a tiny file that I created that does basically the same thing. First, I create a text file, put in the code I need, then rename that file to .bat instead of .txt Then, and do this carefully, I place the .bat file into a folder (using Windows Explorer) that is the root for the backup files you need to wipe. Then, again in Explorer, dbl click the .bat. So I may create the batch, put it into E:\mydocs\FM\DITA_User_Guide\ and that has 5 subfolders, and 10,000 topics, including a lot of backup files, log files, temp files, temp PDF. Then, in that folder, I double click. About 30 seconds later all 10,000 files are reviewed and what I don't need is wiped. BE REALLY REALLY REALLY REALLY REALLY REALLY careful with this. If you accidently have *.fm in your .bat file, OR you put it into a map to a server, or some folder where you didn't mean to do this, you can wipe a LOT more than you planned. The *.log file (as an example) is used in a lot more places than just Frame and PDF generation. You would NOT want to do this on your C: drive either. Lastly, this method works way faster than the Windows Explorer 'find' feature as it will just wipe the files with any of the four extensions. To do it via Explorer may mean you take extra time to find each type, search, select, delete. The *.bat is super fast, but can have dangerous consequences. Hope that helps out. Bernard Bernard Aschwanden Publishing Smarter www.publishingsmarter.com Write Less. Write Better. -Original Message- From: framers-boun...@lists.frameusers.com [mailto:framers-boun...@lists.frameusers.com] On Behalf Of Syed Zaeem Hosain (syed.hos...@aeris.net) Sent: November-30-11 23:41 To: Theresa de Valence; framers@lists.frameusers.com Subject: RE: Deleting backup files 1. Open a DOS command prompt window. 2. Navigate to the directory of choice. If the directory name is long, or has spaces in it, enclose it in double quotes (like this cd \tree name\folder name\ for example). 4. Make a copy of everything before deleting the backups (in case something goes wrong!). I do it like this in the directory where I am: mkdir BACKFILES copy *.* BACKFILES\*.* /v 5. Then delete the FrameMaker backup and log files you want to (this is what I use for example): del *backup* *.log *.tps *.tpdf Be careful above! Do NOT have any spaces beween the '*' characters and the other characters. By the way, I keep the above del line in a text file called cleanframe.bat (in my DOS command path somewhere) so that I just type cleanframe rather than take a risk of accidentally putting in spaces in the wrong place and deleting the wrong files! 6. After you are comfortable that you still have what you need, you remove the other files *if you want*: rmdir /s /q BACKFILES Again, be careful of what you are removing! Ultimately, having a complete backup (in case of recovery needs) is a good a idea before you start any of this - just to be safe. Good luck, Z -Original Message- From: framers-boun...@lists.frameusers.com [mailto:framers-boun...@lists.frameusers.com] On Behalf Of Theresa de Valence Sent: Wednesday, November 30, 2011 3:11 PM To: framers@lists.frameusers.com Subject: Deleting backup files Could someone please give me a command for deleting backup files in Windows (Windows 7)? This is for the end of the project when I am no longer opening all the working files. I'd like the command to work in the current directory and all subdirectories. I vaguely remember how to do this in DOS, but I don't know how to navigate directories which are longer than 8 chars! Many thanks, Theresa ___ You are currently subscribed to framers as syed.hos...@aeris.net
Deleting backup files
Before you read further, realize that the consequence of using a batch command to delete files can impact a lot of what you have on a computer. The samples that were previously provided, as well as the update I suggest, can dramatically change the landscape. Using this stuff incorrectly, or in the wrong place is a bit like using a backhoe to move a kids swing set. Sure, it works, and if you do it well, it works with no negative issues, but if you do it wrong the whole thing crashes down around you. SO, DON'T USE THIS CODE/BATCH FILE UNLESS YOU REALLY THINK THROUGH WHAT YOU ARE DOING. Now that the "Danger Will Robinson" moment has passed, let's move on. I'd suggest one more quick change to the code... The line in step 5 reads: del /s *backup* *.log *.tps *.tpdf I would suggest changing it to: del /s /q *.backup.fm *.log *.tps *.tpdf The update to *.backup.fm ensures you don't accidently delete a file named, for example, "create_backups.fm" which you don't want to remove, but "create_backups.backup.fm" WOULD be deleted. The addition of /q runs "quiet" and won't prompt you for anything, it will just wipe files. Also, I have a tiny file that I created that does basically the same thing. First, I create a text file, put in the code I need, then rename that file to .bat instead of .txt Then, and do this carefully, I place the .bat file into a folder (using Windows Explorer) that is the root for the backup files you need to wipe. Then, again in Explorer, dbl click the .bat. So I may create the batch, put it into E:\mydocs\FM\DITA_User_Guide\ and that has 5 subfolders, and 10,000 topics, including a lot of backup files, log files, temp files, temp PDF. Then, in that folder, I double click. About 30 seconds later all 10,000 files are reviewed and what I don't need is wiped. BE REALLY REALLY REALLY REALLY REALLY REALLY careful with this. If you accidently have *.fm in your .bat file, OR you put it into a map to a server, or some folder where you didn't mean to do this, you can wipe a LOT more than you planned. The *.log file (as an example) is used in a lot more places than just Frame and PDF generation. You would NOT want to do this on your C: drive either. Lastly, this method works way faster than the Windows Explorer 'find' feature as it will just wipe the files with any of the four extensions. To do it via Explorer may mean you take extra time to find each type, search, select, delete. The *.bat is super fast, but can have dangerous consequences. Hope that helps out. Bernard Bernard Aschwanden Publishing Smarter www.publishingsmarter.com Write Less. Write Better. -Original Message- From: framers-bounces at lists.frameusers.com [mailto:framers-boun...@lists.frameusers.com] On Behalf Of Syed Zaeem Hosain (Syed.Hosain at aeris.net) Sent: November-30-11 23:41 To: Theresa de Valence; framers at lists.frameusers.com Subject: RE: Deleting backup files 1. Open a DOS command prompt window. 2. Navigate to the directory of choice. If the directory name is long, or has spaces in it, enclose it in double quotes (like this "cd \tree name\folder name\" for example). 4. Make a copy of everything before deleting the backups (in case something goes wrong!). I do it like this in the directory where I am: mkdir BACKFILES copy *.* BACKFILES\*.* /v 5. Then delete the FrameMaker backup and log files you want to (this is what I use for example): del *backup* *.log *.tps *.tpdf Be careful above! Do NOT have any spaces beween the '*' characters and the other characters. By the way, I keep the above del line in a text file called "cleanframe.bat" (in my DOS command path somewhere) so that I just type "cleanframe" rather than take a risk of accidentally putting in spaces in the wrong place and deleting the wrong files! 6. After you are comfortable that you still have what you need, you remove the other files *if you want*: rmdir /s /q BACKFILES Again, be careful of what you are removing! Ultimately, having a complete backup (in case of recovery needs) is a good a idea before you start any of this - just to be safe. Good luck, Z -Original Message- From: framers-bounces at lists.frameusers.com [mailto:framers-boun...@lists.frameusers.com] On Behalf Of Theresa de Valence Sent: Wednesday, November 30, 2011 3:11 PM To: framers at lists.frameusers.com Subject: Deleting backup files Could someone please give me a command for deleting backup files in Windows (Windows 7)? This is for the end of the project when I am no longer opening all the working files. I'd like the command to work in the current directory and all subdirectories. I vaguely remember how to do this in DOS, but I don't know how to navigate directories which are longer than 8 chars! Many thanks, Theresa ___
RE: Deleting backup files
1. Open a DOS command prompt window. 2. Navigate to the directory of choice. If the directory name is long, or has spaces in it, enclose it in double quotes (like this cd \tree name\folder name\ for example). 4. Make a copy of everything before deleting the backups (in case something goes wrong!). I do it like this in the directory where I am: mkdir BACKFILES copy *.* BACKFILES\*.* /v 5. Then delete the FrameMaker backup and log files you want to (this is what I use for example): del *backup* *.log *.tps *.tpdf Be careful above! Do NOT have any spaces beween the '*' characters and the other characters. By the way, I keep the above del line in a text file called cleanframe.bat (in my DOS command path somewhere) so that I just type cleanframe rather than take a risk of accidentally putting in spaces in the wrong place and deleting the wrong files! 6. After you are comfortable that you still have what you need, you remove the other files *if you want*: rmdir /s /q BACKFILES Again, be careful of what you are removing! Ultimately, having a complete backup (in case of recovery needs) is a good a idea before you start any of this - just to be safe. Good luck, Z -Original Message- From: framers-boun...@lists.frameusers.com [mailto:framers-boun...@lists.frameusers.com] On Behalf Of Theresa de Valence Sent: Wednesday, November 30, 2011 3:11 PM To: framers@lists.frameusers.com Subject: Deleting backup files Could someone please give me a command for deleting backup files in Windows (Windows 7)? This is for the end of the project when I am no longer opening all the working files. I'd like the command to work in the current directory and all subdirectories. I vaguely remember how to do this in DOS, but I don't know how to navigate directories which are longer than 8 chars! Many thanks, Theresa ___ You are currently subscribed to framers as syed.hos...@aeris.net. Send list messages to framers@lists.frameusers.com. To unsubscribe send a blank email to framers-unsubscr...@lists.frameusers.com or visit http://lists.frameusers.com/mailman/options/framers/syed.hosain%40aeris.net Send administrative questions to listad...@frameusers.com. Visit http://www.frameusers.com/ for more resources and info. ___ You are currently subscribed to framers as arch...@mail-archive.com. Send list messages to framers@lists.frameusers.com. To unsubscribe send a blank email to framers-unsubscr...@lists.frameusers.com or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to listad...@frameusers.com. Visit http://www.frameusers.com/ for more resources and info.
RE: Deleting backup files
Forgot to mention (since you asked) ... if you want to clean the files in *all* subdirectories of where you are currently in, add the /s option to del like this: del /s *backup* *.log *.tps *.tpdf Btw, the first filename above does not have a . in it (the other three do - to just specify the extension). Also note that the extension of the last item above is .tpdf not .pdf ... this is a leftover from when I discovered that sometimes, temporary files would be left behind when PDF'ing files - I don't remember seeing it recently and you may not need it either! Of course, in this case, please consider making a backup of the full tree below the current directory first (i.e., not just like what I did with the BACKFILES subdirectory example I show below) to avoid potential mishaps! Z -Original Message- From: Syed Zaeem Hosain (syed.hos...@aeris.net) Sent: Wednesday, November 30, 2011 8:41 PM To: 'Theresa de Valence'; framers@lists.frameusers.com Subject: RE: Deleting backup files 1. Open a DOS command prompt window. 2. Navigate to the directory of choice. If the directory name is long, or has spaces in it, enclose it in double quotes (like this cd \tree name\folder name\ for example). 4. Make a copy of everything before deleting the backups (in case something goes wrong!). I do it like this in the directory where I am: mkdir BACKFILES copy *.* BACKFILES\*.* /v 5. Then delete the FrameMaker backup and log files you want to (this is what I use for example): del *backup* *.log *.tps *.tpdf Be careful above! Do NOT have any spaces beween the '*' characters and the other characters. The first one does not have a ., Also note that the extension of the last item above is .tpdf not .pdf ... this is a leftover from when I discovered that sometimes, temporary files would be left behind when PDF'ing files - I don't remember seeing it recently and you may not need it either. By the way, I keep the above del line in a text file called cleanframe.bat (in my DOS command path somewhere) so that I just type cleanframe rather than take a risk of accidentally putting in spaces in the wrong place and deleting the wrong files! 6. After you are comfortable that you still have what you need, you remove the other files *if you want*: rmdir /s /q BACKFILES Again, be careful of what you are removing! Ultimately, having a complete backup (in case of recovery needs) is a good a idea before you start any of this - just to be safe. Good luck, Z -Original Message- From: framers-boun...@lists.frameusers.com [mailto:framers-boun...@lists.frameusers.com] On Behalf Of Theresa de Valence Sent: Wednesday, November 30, 2011 3:11 PM To: framers@lists.frameusers.com Subject: Deleting backup files Could someone please give me a command for deleting backup files in Windows (Windows 7)? This is for the end of the project when I am no longer opening all the working files. I'd like the command to work in the current directory and all subdirectories. I vaguely remember how to do this in DOS, but I don't know how to navigate directories which are longer than 8 chars! Many thanks, Theresa ___ You are currently subscribed to framers as syed.hos...@aeris.net. Send list messages to framers@lists.frameusers.com. To unsubscribe send a blank email to framers-unsubscr...@lists.frameusers.com or visit http://lists.frameusers.com/mailman/options/framers/syed.hosain%40aeris.net Send administrative questions to listad...@frameusers.com. Visit http://www.frameusers.com/ for more resources and info. ___ You are currently subscribed to framers as arch...@mail-archive.com. Send list messages to framers@lists.frameusers.com. To unsubscribe send a blank email to framers-unsubscr...@lists.frameusers.com or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to listad...@frameusers.com. Visit http://www.frameusers.com/ for more resources and info.
RE: Deleting backup files
Theresa de Valence wrote: Could someone please give me a command for deleting backup files in Windows (Windows 7)? This is for the end of the project when I am no longer opening all the working files. I'd like the command to work in the current directory and all subdirectories. I vaguely remember how to do this in DOS, but I don't know how to navigate directories which are longer than 8 chars! Syed provided good instructions for doing it at the command prompt and with a batch file. But if you're more comfortable staying in Windows, you can do it pretty easily in Windows Explorer. 1) In Windows Explorer, navigate to the parent directory of the subdirectories you want to clean. 2) In the search box at the upper right, enter *.backup.* Windows finds all the backup files in the current directory and all its subdirectories. If you have View set to Details, you can see the full path for each file, along with the usual date/type/size info. 3) Select a file and press Ctrl+A to select all the files in the list. Then press Delete. Richard G. Combs Senior Technical Writer Polycom, Inc. richardDOTcombs AT polycomDOTcom 303-223-5111 -- rgcombs AT gmailDOTcom 303-903-6372 -- ___ You are currently subscribed to framers as arch...@mail-archive.com. Send list messages to framers@lists.frameusers.com. To unsubscribe send a blank email to framers-unsubscr...@lists.frameusers.com or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to listad...@frameusers.com. Visit http://www.frameusers.com/ for more resources and info.
RE: Deleting backup files
Cool! I had not thought of using Windows Explorer to do what Theresa asked about, since I did not realize it would search through subdirectories for wildcards like that. :) I guess I am an old school DOS and UNIX user and sometimes just find it easy (habit?) to use a command window and didn't think of other alternatives. :( Thanks! Z -Original Message- From: framers-boun...@lists.frameusers.com [mailto:framers-boun...@lists.frameusers.com] On Behalf Of Combs, Richard Sent: Wednesday, November 30, 2011 10:53 PM To: Theresa de Valence; framers@lists.frameusers.com Subject: RE: Deleting backup files Theresa de Valence wrote: Could someone please give me a command for deleting backup files in Windows (Windows 7)? This is for the end of the project when I am no longer opening all the working files. I'd like the command to work in the current directory and all subdirectories. I vaguely remember how to do this in DOS, but I don't know how to navigate directories which are longer than 8 chars! Syed provided good instructions for doing it at the command prompt and with a batch file. But if you're more comfortable staying in Windows,you can do it pretty easily in Windows Explorer. 1) In Windows Explorer, navigate to the parent directory of the subdirectories you want to clean. 2) In the search box at the upper right, enter *.backup.* Windows finds all the backup files in the current directory and all its subdirectories. If you have View set to Details, you can see the full path for each file, along with the usual date/type/size info. 3) Select a file and press Ctrl+A to select all the files in the list. Then press Delete. Richard G. Combs Senior Technical Writer Polycom, Inc. richardDOTcombs AT polycomDOTcom 303-223-5111 -- rgcombs AT gmailDOTcom 303-903-6372 -- ___ You are currently subscribed to framers as syed.hos...@aeris.net. Send list messages to framers@lists.frameusers.com. To unsubscribe send a blank email to framers-unsubscr...@lists.frameusers.com or visit http://lists.frameusers.com/mailman/options/framers/syed.hosain%40aeris.net Send administrative questions to listad...@frameusers.com. Visit http://www.frameusers.com/ for more resources and info. ___ You are currently subscribed to framers as arch...@mail-archive.com. Send list messages to framers@lists.frameusers.com. To unsubscribe send a blank email to framers-unsubscr...@lists.frameusers.com or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to listad...@frameusers.com. Visit http://www.frameusers.com/ for more resources and info.
Deleting backup files
Theresa de Valence wrote: > Could someone please give me a command for deleting backup files in > Windows (Windows 7)? > > This is for the end of the project when I am no longer opening all the > working files. > > I'd like the command to work in the current directory and all > subdirectories. > > I vaguely remember how to do this in DOS, but I don't know how to > navigate directories which are longer than 8 chars! Syed provided good instructions for doing it at the command prompt and with a batch file. But if you're more comfortable staying in Windows, you can do it pretty easily in Windows Explorer. 1) In Windows Explorer, navigate to the parent directory of the subdirectories you want to clean. 2) In the search box at the upper right, enter *.backup.* Windows finds all the backup files in the current directory and all its subdirectories. If you have View set to Details, you can see the full path for each file, along with the usual date/type/size info. 3) Select a file and press Ctrl+A to select all the files in the list. Then press Delete. Richard G. Combs Senior Technical Writer Polycom, Inc. richardDOTcombs AT polycomDOTcom 303-223-5111 -- rgcombs AT gmailDOTcom 303-903-6372 --
Deleting backup files
Cool! I had not thought of using Windows Explorer to do what Theresa asked about, since I did not realize it would search through subdirectories for wildcards like that. :) I guess I am an old school DOS and UNIX user and sometimes just find it easy (habit?) to use a command window and didn't think of other alternatives. :( Thanks! Z -Original Message- From: framers-bounces at lists.frameusers.com [mailto:framers-boun...@lists.frameusers.com] On Behalf Of Combs, Richard Sent: Wednesday, November 30, 2011 10:53 PM To: Theresa de Valence; framers at lists.frameusers.com Subject: RE: Deleting backup files Theresa de Valence wrote: > Could someone please give me a command for deleting backup files in > Windows (Windows 7)? > > This is for the end of the project when I am no longer opening all the > working files. > > I'd like the command to work in the current directory and all > subdirectories. > > I vaguely remember how to do this in DOS, but I don't know how to > navigate directories which are longer than 8 chars! Syed provided good instructions for doing it at the command prompt and with a batch file. But if you're more comfortable staying in Windows,you can do it pretty easily in Windows Explorer. 1) In Windows Explorer, navigate to the parent directory of the subdirectories you want to clean. 2) In the search box at the upper right, enter *.backup.* Windows finds all the backup files in the current directory and all its subdirectories. If you have View set to Details, you can see the full path for each file, along with the usual date/type/size info. 3) Select a file and press Ctrl+A to select all the files in the list. Then press Delete. Richard G. Combs Senior Technical Writer Polycom, Inc. richardDOTcombs AT polycomDOTcom 303-223-5111 -- rgcombs AT gmailDOTcom 303-903-6372 -- ___ You are currently subscribed to framers as Syed.Hosain at aeris.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/syed.hosain%40aeris.net Send administrative questions to listadmin at frameusers.com. Visit http://www.frameusers.com/ for more resources and info.
Re: deleting backup files
Using del /s *.backup.* will also work. The /S switch tells the command to recursively trawl directories for the matching files, and terminate them. --- rebecca officer [EMAIL PROTECTED] wrote: 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. http://technical-writing.dionysius.com/ technical writing | consulting | development Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games. http://sims.yahoo.com/ ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
Re: batch deleting backup files
Put the following into a file (named with extension .BAT): @echo off echo. echo Deleting the following files from the current directory: dir *.backup.* *.lck echo. del *.backup.* *.lck and that will do the trick when you execute the batch program in a DOS window or from the Run command line. Even easier, put a shortcut to the batch file on your desktop or elsewhere, and click on it to run it. Mike Wickham ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
Re: batch deleting backup files
Hi, Mike. Mike Wickham wrote: Put the following into a file (named with extension .BAT): @echo off echo. echo Deleting the following files from the current directory: dir *.backup.* *.lck echo. del *.backup.* *.lck and that will do the trick when you execute the batch program in a DOS window or from the Run command line. Even easier, put a shortcut to the batch file on your desktop or elsewhere, and click on it to run it. Uh ... I think that is not gonna work too well, if you are in the wrong directory (your desktop?) when you run it. In fact, I think my previous advice to use the Run command line has the same problem! Oops. So, best to have it in a folder that is in your path and then execute it from a DOS window in the correct directory. As, also mentioned by others for the DEL command, if you want all backup files in a directory tree removed, you can add the /S switch. What was not mentioned is that you can add that switch to the DIR command too! BTW, I would be very careful of the /S switch ... if you are in the wrong folder. When I tried it from my C:\ root, it found some files that I would not want deleted (without knowing what they were)! Z ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
Re: batch deleting backup files
and that will do the trick when you execute the batch program in a DOS window or from the Run command line. Even easier, put a shortcut to the batch file on your desktop or elsewhere, and click on it to run it. Uh ... I think that is not gonna work too well, if you are in the wrong directory (your desktop?) when you run it. In fact, I think my previous advice to use the Run command line has the same problem! Oops. Oops! You're right. The batch files I'm used to running are set to run on specific directories. I forgot that that one didn't specify the directory. Mike Wickham ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
Re: batch deleting backup files
It's been a while since I messed with .BAT, but... Perhaps adding a master path and /s to catch the subdirectories would do the trick: @echo off echo. echo Deleting the following files from the current directory: cd [MainPathForFMfiles] dir *.backup.* *.lck /s echo. del *.backup.* *.lck /s HTH Rene Stephenson Syed Zaeem Hosain [EMAIL PROTECTED] wrote: Hi, Mike. Mike Wickham wrote: Put the following into a file (named with extension .BAT): @echo off echo. echo Deleting the following files from the current directory: dir *.backup.* *.lck echo. del *.backup.* *.lck and that will do the trick when you execute the batch program in a DOS window or from the Run command line. Even easier, put a shortcut to the batch file on your desktop or elsewhere, and click on it to run it. Uh ... I think that is not gonna work too well, if you are in the wrong directory (your desktop?) when you run it. In fact, I think my previous advice to use the Run command line has the same problem! Oops. So, best to have it in a folder that is in your path and then execute it from a DOS window in the correct directory. As, also mentioned by others for the DEL command, if you want all backup files in a directory tree removed, you can add the /S switch. What was not mentioned is that you can add that switch to the DIR command too! BTW, I would be very careful of the /S switch ... if you are in the wrong folder. When I tried it from my C:\ root, it found some files that I would not want deleted (without knowing what they were)! Z ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/rinnie1%40yahoo.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info. ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
Re: batch deleting backup files
In the shortcut, you might want to specify the Start In directory. You can do this by finding your batch file, right-clicking and selecting Create Shortcut, then right-clicking on the Shortcut and filling in the Start In field with the desired target directory. --- Mike Wickham [EMAIL PROTECTED] wrote: Even easier, put a shortcut to the batch file on your desktop or elsewhere, and click on it to run it. http://technical-writing.dionysius.com/ technical writing | consulting | development Pinpoint customers who are looking for what you sell. http://searchmarketing.yahoo.com/___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
Re: batch deleting backup files
Perhaps adding a master path and /s to catch the subdirectories would do the trick Yes, works if the master path is consistent and does not cause problems for any non-FM files below it - not likely, but you never know! Yet another possibility ... since the folders may be different for different projects (but now, we are starting to gild the lily): Add a parameter to the .BAT file and call it with the directory you want - with no parameter, it just works in the current directory. Still best to do it from a DOS window or a Run command line (which works in this case, since you can specify the directory). BTW, I continue to be leery of the /S - too uncontrolled an action! @echo off echo. echo Deleting the following files from the directory: cd %1% dir *.backup.* *.lck echo. del *.backup.* *.lck Regards, Z Rene Stephenson wrote: It's been a while since I messed with .BAT, but... Perhaps adding a master path and /s to catch the subdirectories would do the trick: @echo off echo. echo Deleting the following files from the current directory: cd [MainPathForFMfiles] dir *.backup.* *.lck /s echo. del *.backup.* *.lck /s HTH Rene Stephenson */Syed Zaeem Hosain [EMAIL PROTECTED]/* wrote: Hi, Mike. Mike Wickham wrote: Put the following into a file (named with extension .BAT): @echo off echo. echo Deleting the following files from the current directory: dir *.backup.* *.lck echo. del *.backup.* *.lck and that will do the trick when you execute the batch program in a DOS window or from the Run command line. Even easier, put a shortcut to the batch file on your desktop or elsewhere, and click on it to run it. Uh ... I think that is not gonna work too well, if you are in the wrong directory (your desktop?) when you run it. In fact, I think my previous advice to use the Run command line has the same problem! Oops. So, best to have it in a folder that is in your path and then execute it from a DOS window in the correct directory. As, also mentioned by others for the DEL command, if you want all backup files in a directory tree removed, you can add the /S switch. What was not mentioned is that you can add that switch to the DIR command too! BTW, I would be very careful of the /S switch ... if you are in the wrong folder. When I tried it from my C:\ root, it found some files that I would not want deleted (without knowing what they were)! Z ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
Re: batch deleting backup files
Gilding the lily further: you could add another parameter %2% to the dir and del commands to put in the /S ... as long as you also remembered to use the %1% for the top of the directory that you want the backups to be deleted in - and did not use it accidentally with a file name or directory name: @echo off echo. echo Deleting the following files from the directory: cd %1% dir *.backup.* *.lck %2% echo. del *.backup.* *.lck %2% Z Syed Zaeem Hosain wrote: Perhaps adding a master path and /s to catch the subdirectories would do the trick Yes, works if the master path is consistent and does not cause problems for any non-FM files below it - not likely, but you never know! Yet another possibility ... since the folders may be different for different projects (but now, we are starting to gild the lily): Add a parameter to the .BAT file and call it with the directory you want - with no parameter, it just works in the current directory. Still best to do it from a DOS window or a Run command line (which works in this case, since you can specify the directory). BTW, I continue to be leery of the /S - too uncontrolled an action! @echo off echo. echo Deleting the following files from the directory: cd %1% dir *.backup.* *.lck echo. del *.backup.* *.lck Regards, Z Rene Stephenson wrote: It's been a while since I messed with .BAT, but... Perhaps adding a master path and /s to catch the subdirectories would do the trick: @echo off echo. echo Deleting the following files from the current directory: cd [MainPathForFMfiles] dir *.backup.* *.lck /s echo. del *.backup.* *.lck /s HTH Rene Stephenson */Syed Zaeem Hosain [EMAIL PROTECTED]/* wrote: Hi, Mike. Mike Wickham wrote: Put the following into a file (named with extension .BAT): @echo off echo. echo Deleting the following files from the current directory: dir *.backup.* *.lck echo. del *.backup.* *.lck and that will do the trick when you execute the batch program in a DOS window or from the Run command line. Even easier, put a shortcut to the batch file on your desktop or elsewhere, and click on it to run it. Uh ... I think that is not gonna work too well, if you are in the wrong directory (your desktop?) when you run it. In fact, I think my previous advice to use the Run command line has the same problem! Oops. So, best to have it in a folder that is in your path and then execute it from a DOS window in the correct directory. As, also mentioned by others for the DEL command, if you want all backup files in a directory tree removed, you can add the /S switch. What was not mentioned is that you can add that switch to the DIR command too! BTW, I would be very careful of the /S switch ... if you are in the wrong folder. When I tried it from my C:\ root, it found some files that I would not want deleted (without knowing what they were)! Z -- - Syed Zaeem HosainSVP, Engineering Chief Technical Officer Aeris Communications, Inc. tel: (408) 557-1905 2680 Zanker Roadfax: (408) 557-1925 San Jose, CA 95134-2100. [EMAIL PROTECTED] - ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
batch deleting backup files
Hi Folks Someone posted the text for a batch file (or similar) recently for cleaning up backup files from a folder. I thought I had archived that information, but now I need it, I can't find it. I'd appreciate it if someone could send me the the information. Thanks Dave -- /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ Dave Reynolds Phone: (64) (3) 358 1029 Senior Technical Author Fax: (64) (3) 359 4632 Tait Electronics Ltd Email: dave.reynolds at tait.co.nz PO Box 1645 Christchurch New Zealand === This email, including any attachments, is only for the intended addressee. It is subject to copyright, is confidential and may be the subject of legal or other privilege, none of which is waived or lost by reason of this transmission. If the receiver is not the intended addressee, please accept our apologies, notify us by return, delete all copies and perform no other act on the email. Unfortunately, we cannot warrant that the email has not been altered or corrupted during transmission. ===
Fwd: RE: deleting backup files
I hung onto it. :-) Rebecca >>> "Diane Gaskill" 24/07/07 20:48 >>> 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@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 NOTICE: This message contains privileged and confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message you are hereby notified that you must not disseminate, copy or take any action in reliance on it. If you have received this message in error please notify Allied Telesis Labs Ltd immediately. Any views expressed in this message are those of the individual sender, except where the sender has the authority to issue and specifically states them to be the views of Allied Telesis Labs.
deleting backup files
Using "del /s *.backup.*" will also work. The /S switch tells the command to recursively trawl directories for the matching files, and terminate them. --- rebecca officer wrote: > 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. http://technical-writing.dionysius.com/ technical writing | consulting | development Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games. http://sims.yahoo.com/
batch deleting backup files
> Put the following into a file (named with extension .BAT): > > @echo off > echo. > echo Deleting the following files from the current directory: > dir *.backup.* *.lck > echo. > del *.backup.* *.lck > > and that will do the trick when you execute the batch program in a > DOS window or from the Run command line. Even easier, put a shortcut to the batch file on your desktop or elsewhere, and click on it to run it. Mike Wickham
batch deleting backup files
Hi, Mike. Mike Wickham wrote: >> Put the following into a file (named with extension .BAT): >> >> @echo off >> echo. >> echo Deleting the following files from the current directory: >> dir *.backup.* *.lck >> echo. >> del *.backup.* *.lck >> >> and that will do the trick when you execute the batch program in a >> DOS window or from the Run command line. > > Even easier, put a shortcut to the batch file on your desktop or > elsewhere, and click on it to run it. Uh ... I think that is not gonna work too well, if you are in the wrong directory (your desktop?) when you run it. In fact, I think my previous advice to use the Run command line has the same problem! Oops. So, best to have it in a folder that is in your path and then execute it from a DOS window in the correct directory. As, also mentioned by others for the DEL command, if you want all backup files in a directory tree removed, you can add the /S switch. What was not mentioned is that you can add that switch to the DIR command too! BTW, I would be very careful of the /S switch ... if you are in the wrong folder. When I tried it from my C:\ root, it found some files that I would not want deleted (without knowing what they were)! Z
batch deleting backup files
>>> and that will do the trick when you execute the batch program in a >>> DOS window or from the Run command line. >> >> Even easier, put a shortcut to the batch file on your desktop or >> elsewhere, and click on it to run it. > > Uh ... I think that is not gonna work too well, if you are in the wrong > directory (your desktop?) when you run it. In fact, I think my previous > advice to use the Run command line has the same problem! Oops. Oops! You're right. The batch files I'm used to running are set to run on specific directories. I forgot that that one didn't specify the directory. Mike Wickham
batch deleting backup files
It's been a while since I messed with .BAT, but... Perhaps adding a master path and /s to catch the subdirectories would do the trick: @echo off echo. echo Deleting the following files from the current directory: cd [MainPathForFMfiles] dir *.backup.* *.lck /s echo. del *.backup.* *.lck /s HTH Rene Stephenson Syed Zaeem Hosain wrote: Hi, Mike. Mike Wickham wrote: >> Put the following into a file (named with extension .BAT): >> >> @echo off >> echo. >> echo Deleting the following files from the current directory: >> dir *.backup.* *.lck >> echo. >> del *.backup.* *.lck >> >> and that will do the trick when you execute the batch program in a >> DOS window or from the Run command line. > > Even easier, put a shortcut to the batch file on your desktop or > elsewhere, and click on it to run it. Uh ... I think that is not gonna work too well, if you are in the wrong directory (your desktop?) when you run it. In fact, I think my previous advice to use the Run command line has the same problem! Oops. So, best to have it in a folder that is in your path and then execute it from a DOS window in the correct directory. As, also mentioned by others for the DEL command, if you want all backup files in a directory tree removed, you can add the /S switch. What was not mentioned is that you can add that switch to the DIR command too! BTW, I would be very careful of the /S switch ... if you are in the wrong folder. When I tried it from my C:\ root, it found some files that I would not want deleted (without knowing what they were)! Z ___ You are currently subscribed to Framers as rinnie1 at yahoo.com. 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/rinnie1%40yahoo.com Send administrative questions to listadmin at frameusers.com. Visit http://www.frameusers.com/ for more resources and info.
batch deleting backup files
In the shortcut, you might want to specify the "Start In" directory. You can do this by finding your batch file, right-clicking and selecting "Create Shortcut," then right-clicking on the Shortcut and filling in the "Start In" field with the desired target directory. --- Mike Wickham wrote: > >> Even easier, put a shortcut to the batch file on your desktop or > >> elsewhere, and click on it to run it. http://technical-writing.dionysius.com/ technical writing | consulting | development Pinpoint customers who are looking for what you sell. http://searchmarketing.yahoo.com/
batch deleting backup files
> Perhaps adding a > master path and /s to catch the subdirectories would do the trick Yes, works if the master path is consistent and does not cause problems for any non-FM files below it - not likely, but you never know! Yet another possibility ... since the folders may be different for different projects (but now, we are starting to gild the lily): Add a parameter to the .BAT file and call it with the directory you want - with no parameter, it just works in the current directory. Still best to do it from a DOS window or a Run command line (which works in this case, since you can specify the directory). BTW, I continue to be leery of the /S - too uncontrolled an action! @echo off echo. echo Deleting the following files from the directory: cd %1% dir *.backup.* *.lck echo. del *.backup.* *.lck Regards, Z Rene Stephenson wrote: > It's been a while since I messed with .BAT, but... Perhaps adding a > master path and /s to catch the subdirectories would do the trick: > @echo off > echo. > echo Deleting the following files from the current directory: > cd [MainPathForFMfiles] > dir *.backup.* *.lck /s > echo. > del *.backup.* *.lck /s > HTH > Rene Stephenson > > */Syed Zaeem Hosain /* wrote: > > Hi, Mike. > > Mike Wickham wrote: > >> Put the following into a file (named with extension .BAT): > >> > >> @echo off > >> echo. > >> echo Deleting the following files from the current directory: > >> dir *.backup.* *.lck > >> echo. > >> del *.backup.* *.lck > >> > >> and that will do the trick when you execute the batch program in a > >> DOS window or from the Run command line. > > > > Even easier, put a shortcut to the batch file on your desktop or > > elsewhere, and click on it to run it. > > Uh ... I think that is not gonna work too well, if you are in the wrong > directory (your desktop?) when you run it. In fact, I think my previous > advice to use the Run command line has the same problem! Oops. > > So, best to have it in a folder that is in your path and then execute it > from a DOS window in the correct directory. > > As, also mentioned by others for the DEL command, if you want all backup > files in a directory tree removed, you can add the /S switch. What was > not mentioned is that you can add that switch to the DIR command too! > > BTW, I would be very careful of the /S switch ... if you are in the > wrong > folder. When I tried it from my C:\ root, it found some files that I > would > not want deleted (without knowing what they were)! > > Z
batch deleting backup files
Gilding the lily further: you could add another parameter %2% to the dir and del commands to put in the "/S" ... as long as you also remembered to use the %1% for the top of the directory that you want the backups to be deleted in - and did not use it accidentally with a file name or directory name: @echo off echo. echo Deleting the following files from the directory: cd %1% dir *.backup.* *.lck %2% echo. del *.backup.* *.lck %2% Z Syed Zaeem Hosain wrote: > > Perhaps adding a > > master path and /s to catch the subdirectories would do the trick > > Yes, works if the master path is consistent and does not cause > problems for any non-FM files below it - not likely, but you never > know! > > Yet another possibility ... since the folders may be different for > different projects (but now, we are starting to gild the lily): > > Add a parameter to the .BAT file and call it with the directory you > want - with no parameter, it just works in the current directory. > Still best to do it from a DOS window or a Run command line (which > works in this case, since you can specify the directory). BTW, I > continue to be leery of the /S - too uncontrolled an action! > > @echo off > echo. > echo Deleting the following files from the directory: > cd %1% > dir *.backup.* *.lck > echo. > del *.backup.* *.lck > > Regards, > > Z > > Rene Stephenson wrote: >> It's been a while since I messed with .BAT, but... Perhaps adding a >> master path and /s to catch the subdirectories would do the trick: >> @echo off >> echo. >> echo Deleting the following files from the current directory: >> cd [MainPathForFMfiles] >> dir *.backup.* *.lck /s >> echo. >> del *.backup.* *.lck /s >> HTH >> Rene Stephenson >> >> */Syed Zaeem Hosain /* wrote: >> >> Hi, Mike. >> >> Mike Wickham wrote: >> >> Put the following into a file (named with extension .BAT): >> >> >> >> @echo off >> >> echo. >> >> echo Deleting the following files from the current directory: >> >> dir *.backup.* *.lck >> >> echo. >> >> del *.backup.* *.lck >> >> >> >> and that will do the trick when you execute the batch program >> in a >> >> DOS window or from the Run command line. >> > >> > Even easier, put a shortcut to the batch file on your desktop or >> > elsewhere, and click on it to run it. >> >> Uh ... I think that is not gonna work too well, if you are in the >> wrong >> directory (your desktop?) when you run it. In fact, I think my >> previous >> advice to use the Run command line has the same problem! Oops. >> >> So, best to have it in a folder that is in your path and then >> execute it >> from a DOS window in the correct directory. >> >> As, also mentioned by others for the DEL command, if you want all >> backup >> files in a directory tree removed, you can add the /S switch. What >> was >> not mentioned is that you can add that switch to the DIR command too! >> >> BTW, I would be very careful of the /S switch ... if you are in the >> wrong >> folder. When I tried it from my C:\ root, it found some files that I >> would >> not want deleted (without knowing what they were)! >> >> Z > -- - Syed Zaeem HosainSVP, Engineering & Chief Technical Officer Aeris Communications, Inc. tel: (408) 557-1905 2680 Zanker Roadfax: (408) 557-1925 San Jose, CA 95134-2100. Syed.Hosain at aeris.net -
batch deleting backup files
Hi Folks Someone posted the text for a batch file (or similar) recently for cleaning up backup files from a folder. I thought I had archived that information, but now I need it, I can't find it. I'd appreciate it if someone could send me the the information. Thanks Dave -- /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ Dave Reynolds Phone: (64) (3) 358 1029 Senior Technical Author Fax: (64) (3) 359 4632 Tait Electronics Ltd Email: [EMAIL PROTECTED] PO Box 1645 Christchurch New Zealand === This email, including any attachments, is only for the intended addressee. It is subject to copyright, is confidential and may be the subject of legal or other privilege, none of which is waived or lost by reason of this transmission. If the receiver is not the intended addressee, please accept our apologies, notify us by return, delete all copies and perform no other act on the email. Unfortunately, we cannot warrant that the email has not been altered or corrupted during transmission. === ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
Fwd: RE: deleting backup files
I hung onto it. :-) Rebecca Diane Gaskill [EMAIL PROTECTED] 24/07/07 20:48 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of B Hechter Sent: Monday, July 23, 2007 10:13 AM To: framers@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 NOTICE: This message contains privileged and confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message you are hereby notified that you must not disseminate, copy or take any action in reliance on it. If you have received this message in error please notify Allied Telesis Labs Ltd immediately. Any views expressed in this message are those of the individual sender, except where the sender has the authority to issue and specifically states them to be the views of Allied Telesis Labs. ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
Re: batch deleting backup files
Put the following into a file (named with extension .BAT): @echo off echo. echo Deleting the following files from the current directory: dir *.backup.* *.lck echo. del *.backup.* *.lck and that will do the trick when you execute the batch program in a DOS window or from the Run command line. Z Dave Reynolds wrote: Hi Folks Someone posted the text for a batch file (or similar) recently for cleaning up backup files from a folder. I thought I had archived that information, but now I need it, I can't find it. I'd appreciate it if someone could send me the the information. Thanks Dave ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
Re: Fwd: RE: deleting backup files
Thanks Rebecca. You beat me to it. BTW, I have a small addition to the message I wrote. The DEL commmand has a switch that recurses subdirectories. It did not have the switch when I wrote the batch file. You no longer need the additional program called sweep. Regards, Diane -Original Message- From: rebecca officer [EMAIL PROTECTED] Sent: Aug 29, 2007 8:13 PM To: FrameUsers List framers@lists.frameusers.com, Dave Reynolds [EMAIL PROTECTED] Subject: Fwd: RE: deleting backup files I hung onto it. :-) Rebecca Diane Gaskill [EMAIL PROTECTED] 24/07/07 20:48 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of B Hechter Sent: Monday, July 23, 2007 10:13 AM To: framers@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 NOTICE: This message contains privileged and confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message you are hereby notified that you must not disseminate, copy or take any action in reliance on it. If you have received this message in error please notify Allied Telesis Labs Ltd immediately. Any views expressed in this message are those of the individual sender, except where the sender has the authority to issue and specifically states them to be the views of Allied Telesis Labs. ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/dgcaller%40earthlink.net Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info. ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
batch deleting backup files
Put the following into a file (named with extension .BAT): @echo off echo. echo Deleting the following files from the current directory: dir *.backup.* *.lck echo. del *.backup.* *.lck and that will do the trick when you execute the batch program in a DOS window or from the Run command line. Z Dave Reynolds wrote: > Hi Folks > > Someone posted the text for a batch file (or similar) recently for > cleaning up backup files from a folder. I thought I had archived that > information, but now I need it, I can't find it. I'd appreciate it if > someone could send me the the information. > > Thanks > > Dave
Fwd: RE: deleting backup files
Thanks Rebecca. You beat me to it. BTW, I have a small addition to the message I wrote. The DEL commmand has a switch that recurses subdirectories. It did not have the switch when I wrote the batch file. You no longer need the additional program called "sweep." Regards, Diane -Original Message- >From: rebecca officer >Sent: Aug 29, 2007 8:13 PM >To: FrameUsers List , >Subject: Fwd: RE: deleting backup files > >I hung onto it. > >:-) > >Rebecca > >>>> "Diane Gaskill" 24/07/07 20:48 >>> >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 > >NOTICE: This message contains privileged and confidential >information intended only for the use of the addressee >named above. If you are not the intended recipient of >this message you are hereby notified that you must not >disseminate, copy or take any action in reliance on it. >If you have received this message in error please >notify Allied Telesis Labs Ltd immediately. >Any views expressed in this message are those of the >individual sender, except where the sender has the >authority to issue and specifically states them to >be the views of Allied Telesis Labs. >___ > > >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.
Re: deleting backup files
While we are on the subject of external drives, I recommend the laptop size external drives. They require a low enough amount of power that they can be powered by the USB itself. No need for a power cord. I find that to be very convenient. (Check the specs to make sure that they don't require external power.) Regards, Shmuel Wolfson B Hechter wrote: Thanks to everyone for suggestions on post-production deletion of unnecessary backup files. I overlooked the obvious Windows command line interface, so thanks for the reality check. My 2c on backups: - Flash USB is temporary storage only, don't depend on it for backup - Invest in a large capacity external drive and dump EVERYTHING to it on a regularly scheduled basis. I have not yet found any selective backup synchronization software that meets my needs, but, hey, maybe it's out there. Ben ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
RE: deleting backup files
Wow. Thanks for the clarification. ...going to the back of the class now... -Original Message- From: Fred Ridder [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 24, 2007 1:26 PM To: Carol Wade; framers@lists.frameusers.com Subject: RE: deleting backup files You don't need the .backup to back out of an unwanted editing change because right there in the File menu is the Revert to last saved command, wich does exactly what it says and does not rely on the the .backup file created by the automatic backup mode. I can see where a global find and replace could be a case where it might be necessary to use the .backup files to back out of the change. But in my own workflow I tend to use variables for anything that is likely to need to be changed globally, and variable changes are easy to undo without reverting to an older version of the doc. But it's important to note that manually reverting to the .backup is actually taking you back to the version *before* your last save because the .backup file is *not*a*backup* of the version you saved. It's the file as it existed *prior*to* the last save. The only time that this is what you really want to do is when you have made *and*saved* some unwanted changes and need to revert to the second previous saved version. The .backup file is always one save behind the changes you have made, so you'll be throwing out both the current changes and the last saved set of changes if you revert to the .backup. Fred Ridder From: Carol Wade [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: deleting backup files Date: Tue, 24 Jul 2007 09:22:23 -0600 Interesting, Fred, that your bacon has never been saved by a .backup. I tend to work quickly - perhaps a bit too hastily at times. When I realize that I have made a stoopid global change or have edited the meaning out of some text, I am glad to have the .backup. Its good to know that we are each unique! - Carol NOTICE BY HEALTH LANGUAGE, INC. This message, as well as any attached document, contains information from Health Language, Inc. that is confidential. The information is intended only for the use of the addressee named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this message or its attachments is strictly prohibited, and may be unlawful. If you have received this message in error, please delete all electronic copies of this message and its attachments, if any, destroy any hard copies you may have created, without disclosing the contents, and notify the sender immediately. Unless expressly stated otherwise, nothing contained in this message should be construed as a digital or electronic signature, nor is it intended to reflect an intention to make an agreement by electronic means. _ http://liveearth.msn.com NOTICE BY HEALTH LANGUAGE, INC. This message, as well as any attached document, contains information from Health Language, Inc. that is confidential. The information is intended only for the use of the addressee named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this message or its attachments is strictly prohibited, and may be unlawful. If you have received this message in error, please delete all electronic copies of this message and its attachments, if any, destroy any hard copies you may have created, without disclosing the contents, and notify the sender immediately. Unless expressly stated otherwise, nothing contained in this message should be construed as a digital or electronic signature, nor is it intended to reflect an intention to make an agreement by electronic means. ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
Re: deleting backup files
At 09:26 -0700 24/7/07, B Hechter wrote: I have not yet found any selective backup synchronization software that meets my needs, but, hey, maybe it's out there. Retrospect? -- Steve ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
deleting backup files
While we are on the subject of external drives, I recommend the laptop size external drives. They require a low enough amount of power that they can be powered by the USB itself. No need for a power cord. I find that to be very convenient. (Check the specs to make sure that they don't require external power.) Regards, Shmuel Wolfson B Hechter wrote: > Thanks to everyone for suggestions on post-production deletion of > unnecessary backup files. I overlooked the obvious Windows command line > interface, so thanks for the reality check. > > My 2c on backups: > - Flash USB is temporary storage only, don't depend on it for backup > - Invest in a large capacity external drive and dump EVERYTHING to it > on a > regularly scheduled basis. I have not yet found any selective backup > synchronization software that meets my needs, but, hey, maybe it's out > there. > > Ben >
deleting backup files
At 09:26 -0700 24/7/07, B Hechter wrote: >I have not yet found any selective backup synchronization software that meets >my needs, but, hey, maybe it's out there. Retrospect? -- Steve
RE: deleting backup files
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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of B Hechter Sent: Monday, July 23, 2007 10:13 AM To: framers@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: [EMAIL PROTECTED] w: www.semitake.com ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/dgcaller%40earthlink.net Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info. ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
Re: deleting backup files
It's important to note that autosave does *not* perform the same operation as the regular save. There is a separate autosave file that FrameMaker manages, separate from the file that you opened (or that you last saved). Well, son of a gun. I learn something new everyday! I've been avoiding autosave without a valid reason. Mike Wickham ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
RE: deleting backup files
Interesting, Fred, that your bacon has never been saved by a .backup. I tend to work quickly - perhaps a bit too hastily at times. When I realize that I have made a stoopid global change or have edited the meaning out of some text, I am glad to have the .backup. Its good to know that we are each unique! - Carol NOTICE BY HEALTH LANGUAGE, INC. This message, as well as any attached document, contains information from Health Language, Inc. that is confidential. The information is intended only for the use of the addressee named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this message or its attachments is strictly prohibited, and may be unlawful. If you have received this message in error, please delete all electronic copies of this message and its attachments, if any, destroy any hard copies you may have created, without disclosing the contents, and notify the sender immediately. Unless expressly stated otherwise, nothing contained in this message should be construed as a digital or electronic signature, nor is it intended to reflect an intention to make an agreement by electronic means. ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
Re: deleting backup files
Thanks to everyone for suggestions on post-production deletion of unnecessary backup files. I overlooked the obvious Windows command line interface, so thanks for the reality check. My 2c on backups: - Flash USB is temporary storage only, don't depend on it for backup - Invest in a large capacity external drive and dump EVERYTHING to it on a regularly scheduled basis. I have not yet found any selective backup synchronization software that meets my needs, but, hey, maybe it's out there. Ben -- Ben Hechter objectives.ca Technical Performance Support Solutions Vancouver BC e: [EMAIL PROTECTED] w: www.semitake.com ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
RE: deleting backup files
I'm convinced that autosave and automatic backup are among the most misunderstood features in FrameMaker, which is why I continue to post messages explaining them. No need to go slinking off to the back of the classroom if you were laboring under a misconception. In the case of autosave, many users assume that the well-engineered feature in FrameMaker operates in the same brain-dead way that it is implemented in so many of the applications we are all familiar with. And in the case of the automatic backup feature, users assume that it is a well-engineered feature when it is really kind of a QD kludge that functions quite differently than its name implies that it should work. -Fred Ridder From: Carol Wade [EMAIL PROTECTED] To: Fred Ridder [EMAIL PROTECTED],framers@lists.frameusers.com Subject: RE: deleting backup files Date: Tue, 24 Jul 2007 13:49:33 -0600 Wow. Thanks for the clarification. ...going to the back of the class now... -Original Message- From: Fred Ridder [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 24, 2007 1:26 PM To: Carol Wade; framers@lists.frameusers.com Subject: RE: deleting backup files You don't need the .backup to back out of an unwanted editing change because right there in the File menu is the Revert to last saved command, wich does exactly what it says and does not rely on the the .backup file created by the automatic backup mode. I can see where a global find and replace could be a case where it might be necessary to use the .backup files to back out of the change. But in my own workflow I tend to use variables for anything that is likely to need to be changed globally, and variable changes are easy to undo without reverting to an older version of the doc. But it's important to note that manually reverting to the .backup is actually taking you back to the version *before* your last save because the .backup file is *not*a*backup* of the version you saved. It's the file as it existed *prior*to* the last save. The only time that this is what you really want to do is when you have made *and*saved* some unwanted changes and need to revert to the second previous saved version. The .backup file is always one save behind the changes you have made, so you'll be throwing out both the current changes and the last saved set of changes if you revert to the .backup. Fred Ridder _ Need a brain boost? Recharge with a stimulating game. Play now! http://club.live.com/home.aspx?icid=club_hotmailtextlink1 ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
Re: deleting backup files
One of the essential FrameMaker procedures that every unique FrameMaker user should learn is to save all files *before* doing anything that might need to be undone; even with the addition of Undo in FrameMaker 7.2, Undo is limited. Further guidelines: * When making global changes to files in a book, open all the files that will be affected (from the book window, Shift+File Open All Files in Book) The reason to perform global operations on open files is that open files are changed, but not saved. You can back out of changes to an individual file by using File Revert to Saved (or File Close Do not save changes); you can back out of changes made to all open files (in a book or not) by deselecting any open book file(s), and using Shift+File Close All Open Files Do not save changes (for each open file). You can back out of changes made to all open files in a book; from the book window, use Shift+File Close All Files In Book Do not save changes (for each open file). This doesn't affect the book file; to back out of changes made to the book file, from the book window, use File Revert to Saved, or File Close Do not save changes. Then reopen the book file. Files in a book that are closed when you perform global operations, like update, find/replace, etc, are opened, then the changes are made, and the files are closed. The status line in the book window displays the progress of these actions, but there's an alert (error message) only if there's a problem opening or processing the closed files. * If some of the files have unsaved changes that you want to protect from errors that the global procedure might cause, save these files before performing the global procedure(s.) HTH Regards, Peter Gold KnowHow ProServices On 7/24/07, Fred Ridder [EMAIL PROTECTED] wrote: You don't need the .backup to back out of an unwanted editing change because right there in the File menu is the Revert to last saved command, wich does exactly what it says and does not rely on the the .backup file created by the automatic backup mode. I can see where a global find and replace could be a case where it might be necessary to use the .backup files to back out of the change. But in my own workflow I tend to use variables for anything that is likely to need to be changed globally, and variable changes are easy to undo without reverting to an older version of the doc. But it's important to note that manually reverting to the .backup is actually taking you back to the version *before* your last save because the .backup file is *not*a*backup* of the version you saved. It's the file as it existed *prior*to* the last save. The only time that this is what you really want to do is when you have made *and*saved* some unwanted changes and need to revert to the second previous saved version. The .backup file is always one save behind the changes you have made, so you'll be throwing out both the current changes and the last saved set of changes if you revert to the .backup. Fred Ridder ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
RE: deleting backup files
Thanks for the good info Fred. I'm filing this in my FM tips folder. Sure wish I had known this yesterday. I did an Esc-s-p-d on the wrong page and saved without checking. I meant to delete a blank page but had the cursor just over the edge on the previous page. I could not revert of course, and had to rebuild the page from the .backup. I could not use the backup directly because I had made changes to the page I accidentally deleted. Oops. Diane (moving up a couple of rows from the back of the class now :-) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Fred Ridder Sent: Tuesday, July 24, 2007 2:02 PM To: [EMAIL PROTECTED]; framers@lists.frameusers.com Subject: RE: deleting backup files I'm convinced that autosave and automatic backup are among the most misunderstood features in FrameMaker, which is why I continue to post messages explaining them. No need to go slinking off to the back of the classroom if you were laboring under a misconception. In the case of autosave, many users assume that the well-engineered feature in FrameMaker operates in the same brain-dead way that it is implemented in so many of the applications we are all familiar with. And in the case of the automatic backup feature, users assume that it is a well-engineered feature when it is really kind of a QD kludge that functions quite differently than its name implies that it should work. -Fred Ridder From: Carol Wade [EMAIL PROTECTED] To: Fred Ridder [EMAIL PROTECTED],framers@lists.frameusers.com Subject: RE: deleting backup files Date: Tue, 24 Jul 2007 13:49:33 -0600 Wow. Thanks for the clarification. ...going to the back of the class now... -Original Message- From: Fred Ridder [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 24, 2007 1:26 PM To: Carol Wade; framers@lists.frameusers.com Subject: RE: deleting backup files You don't need the .backup to back out of an unwanted editing change because right there in the File menu is the Revert to last saved command, wich does exactly what it says and does not rely on the the .backup file created by the automatic backup mode. I can see where a global find and replace could be a case where it might be necessary to use the .backup files to back out of the change. But in my own workflow I tend to use variables for anything that is likely to need to be changed globally, and variable changes are easy to undo without reverting to an older version of the doc. But it's important to note that manually reverting to the .backup is actually taking you back to the version *before* your last save because the .backup file is *not*a*backup* of the version you saved. It's the file as it existed *prior*to* the last save. The only time that this is what you really want to do is when you have made *and*saved* some unwanted changes and need to revert to the second previous saved version. The .backup file is always one save behind the changes you have made, so you'll be throwing out both the current changes and the last saved set of changes if you revert to the .backup. Fred Ridder _ Need a brain boost? Recharge with a stimulating game. Play now! http://club.live.com/home.aspx?icid=club_hotmailtextlink1 ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/dgcaller%40earthlink.net Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info. ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
deleting backup files
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@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.
deleting backup files
> It's important to note that autosave does *not* perform the same > operation as the regular save. There is a separate autosave file that > FrameMaker manages, separate from the file that you opened (or that > you last saved). Well, son of a gun. I learn something new everyday! I've been avoiding autosave without a valid reason. Mike Wickham
deleting backup files
Interesting, Fred, that your bacon has never been saved by a .backup. I tend to work quickly - perhaps a bit too hastily at times. When I realize that I have made a stoopid global change or have edited the meaning out of some text, I am glad to have the .backup. Its good to know that we are each unique! - Carol NOTICE BY HEALTH LANGUAGE, INC. This message, as well as any attached document, contains information from Health Language, Inc. that is confidential. The information is intended only for the use of the addressee named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this message or its attachments is strictly prohibited, and may be unlawful. If you have received this message in error, please delete all electronic copies of this message and its attachments, if any, destroy any hard copies you may have created, without disclosing the contents, and notify the sender immediately. Unless expressly stated otherwise, nothing contained in this message should be construed as a digital or electronic signature, nor is it intended to reflect an intention to make an agreement by electronic means.
deleting backup files
Thanks to everyone for suggestions on post-production deletion of unnecessary backup files. I overlooked the obvious Windows command line interface, so thanks for the reality check. My 2c on backups: - Flash USB is temporary storage only, don't depend on it for backup - Invest in a large capacity external drive and dump EVERYTHING to it on a regularly scheduled basis. I have not yet found any selective backup synchronization software that meets my needs, but, hey, maybe it's out there. Ben -- Ben Hechter objectives.ca Technical Performance Support Solutions Vancouver BC e: bhechter at objectives.ca w: www.semitake.com
deleting backup files
You don't need the .backup to back out of an unwanted editing change because right there in the File menu is the "Revert to last saved" command, wich does exactly what it says and does not rely on the the .backup file created by the "automatic backup" mode. I can see where a global find and replace could be a case where it might be necessary to use the .backup files to back out of the change. But in my own workflow I tend to use variables for anything that is likely to need to be changed globally, and variable changes are easy to undo without reverting to an older version of the doc. But it's important to note that manually reverting to the .backup is actually taking you back to the version *before* your last save because the .backup file is *not*a*backup* of the version you saved. It's the file as it existed *prior*to* the last save. The only time that this is what you really want to do is when you have made *and*saved* some unwanted changes and need to revert to the second previous saved version. The .backup file is always one save behind the changes you have made, so you'll be throwing out both the current changes and the last saved set of changes if you revert to the .backup. Fred Ridder >From: "Carol Wade" >To: >Subject: RE: deleting backup files >Date: Tue, 24 Jul 2007 09:22:23 -0600 > >Interesting, Fred, that your bacon has never been saved by a .backup. I >tend to work quickly - perhaps a bit too hastily at times. When I >realize that I have made a stoopid global change or have edited the >meaning out of some text, I am glad to have the .backup. > > > >Its good to know that we are each unique! > > > >- Carol > > >NOTICE BY HEALTH LANGUAGE, INC. >This message, as well as any attached document, contains information from >Health Language, Inc. that is confidential. The information is intended >only for the use of the addressee named above. If you are not the intended >recipient, you are hereby notified that any disclosure, copying, >distribution or the taking of any action in reliance on the contents of >this message or its attachments is strictly prohibited, and may be >unlawful. If you have received this message in error, please delete all >electronic copies of this message and its attachments, if any, destroy any >hard copies you may have created, without disclosing the contents, and >notify the sender immediately. Unless expressly stated otherwise, nothing >contained in this message should be construed as a digital or electronic >signature, nor is it intended to reflect an intention to make an agreement >by electronic means. _ http://liveearth.msn.com
deleting backup files
I'm convinced that autosave and automatic backup are among the most misunderstood features in FrameMaker, which is why I continue to post messages explaining them. No need to go slinking off to the back of the classroom if you were laboring under a misconception. In the case of autosave, many users assume that the well-engineered feature in FrameMaker operates in the same brain-dead way that it is implemented in so many of the applications we are all familiar with. And in the case of the automatic backup feature, users assume that it is a well-engineered feature when it is really kind of a Q kludge that functions quite differently than its name implies that it should work. -Fred Ridder >From: "Carol Wade" >To: "Fred Ridder" , >Subject: RE: deleting backup files >Date: Tue, 24 Jul 2007 13:49:33 -0600 > >Wow. Thanks for the clarification. ...going to the back of the class >now... > >-Original Message- >From: Fred Ridder [mailto:docudoc at hotmail.com] >Sent: Tuesday, July 24, 2007 1:26 PM >To: Carol Wade; framers at lists.frameusers.com >Subject: RE: deleting backup files > >You don't need the .backup to back out of an unwanted editing >change because right there in the File menu is the "Revert to last >saved" command, wich does exactly what it says and does not rely >on the the .backup file created by the "automatic backup" mode. > >I can see where a global find and replace could be a case where >it might be necessary to use the .backup files to back out of the >change. But in my own workflow I tend to use variables for anything >that is likely to need to be changed globally, and variable changes >are easy to undo without reverting to an older version of the doc. > >But it's important to note that manually reverting to the .backup >is actually taking you back to the version *before* your last save >because the .backup file is *not*a*backup* of the version you >saved. It's the file as it existed *prior*to* the last save. The only >time that this is what you really want to do is when you have >made *and*saved* some unwanted changes and need to revert >to the second previous saved version. The .backup file is always >one save behind the changes you have made, so you'll be throwing >out both the current changes and the last saved set of changes >if you revert to the .backup. > >Fred Ridder _ Need a brain boost? Recharge with a stimulating game. Play now!? http://club.live.com/home.aspx?icid=club_hotmailtextlink1
deleting backup files
Thanks for the good info Fred. I'm filing this in my FM tips folder. Sure wish I had known this yesterday. I did an Esc-s-p-d on the wrong page and saved without checking. I meant to delete a blank page but had the cursor just over the edge on the previous page. I could not revert of course, and had to rebuild the page from the .backup. I could not use the backup directly because I had made changes to the page I accidentally deleted. Oops. Diane (moving up a couple of rows from the back of the class now :-) -Original Message- From: framers-bounces+dgcaller=earthlink@lists.frameusers.com [mailto:framers-bounces+dgcaller=earthlink.net at lists.frameusers.com]On Behalf Of Fred Ridder Sent: Tuesday, July 24, 2007 2:02 PM To: Carol.Wade at healthlanguage.com; framers at lists.frameusers.com Subject: RE: deleting backup files I'm convinced that autosave and automatic backup are among the most misunderstood features in FrameMaker, which is why I continue to post messages explaining them. No need to go slinking off to the back of the classroom if you were laboring under a misconception. In the case of autosave, many users assume that the well-engineered feature in FrameMaker operates in the same brain-dead way that it is implemented in so many of the applications we are all familiar with. And in the case of the automatic backup feature, users assume that it is a well-engineered feature when it is really kind of a Q kludge that functions quite differently than its name implies that it should work. -Fred Ridder >From: "Carol Wade" >To: "Fred Ridder" , >Subject: RE: deleting backup files >Date: Tue, 24 Jul 2007 13:49:33 -0600 > >Wow. Thanks for the clarification. ...going to the back of the class >now... > >-Original Message- >From: Fred Ridder [mailto:docudoc at hotmail.com] >Sent: Tuesday, July 24, 2007 1:26 PM >To: Carol Wade; framers at lists.frameusers.com >Subject: RE: deleting backup files > >You don't need the .backup to back out of an unwanted editing >change because right there in the File menu is the "Revert to last >saved" command, wich does exactly what it says and does not rely >on the the .backup file created by the "automatic backup" mode. > >I can see where a global find and replace could be a case where >it might be necessary to use the .backup files to back out of the >change. But in my own workflow I tend to use variables for anything >that is likely to need to be changed globally, and variable changes >are easy to undo without reverting to an older version of the doc. > >But it's important to note that manually reverting to the .backup >is actually taking you back to the version *before* your last save >because the .backup file is *not*a*backup* of the version you >saved. It's the file as it existed *prior*to* the last save. The only >time that this is what you really want to do is when you have >made *and*saved* some unwanted changes and need to revert >to the second previous saved version. The .backup file is always >one save behind the changes you have made, so you'll be throwing >out both the current changes and the last saved set of changes >if you revert to the .backup. > >Fred Ridder _ Need a brain boost? Recharge with a stimulating game. Play now!? http://club.live.com/home.aspx?icid=club_hotmailtextlink1 ___ 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.
deleting backup files
Wow. Thanks for the clarification. ...going to the back of the class now... -Original Message- From: Fred Ridder [mailto:docu...@hotmail.com] Sent: Tuesday, July 24, 2007 1:26 PM To: Carol Wade; framers at lists.frameusers.com Subject: RE: deleting backup files You don't need the .backup to back out of an unwanted editing change because right there in the File menu is the "Revert to last saved" command, wich does exactly what it says and does not rely on the the .backup file created by the "automatic backup" mode. I can see where a global find and replace could be a case where it might be necessary to use the .backup files to back out of the change. But in my own workflow I tend to use variables for anything that is likely to need to be changed globally, and variable changes are easy to undo without reverting to an older version of the doc. But it's important to note that manually reverting to the .backup is actually taking you back to the version *before* your last save because the .backup file is *not*a*backup* of the version you saved. It's the file as it existed *prior*to* the last save. The only time that this is what you really want to do is when you have made *and*saved* some unwanted changes and need to revert to the second previous saved version. The .backup file is always one save behind the changes you have made, so you'll be throwing out both the current changes and the last saved set of changes if you revert to the .backup. Fred Ridder >From: "Carol Wade" >To: >Subject: RE: deleting backup files >Date: Tue, 24 Jul 2007 09:22:23 -0600 > >Interesting, Fred, that your bacon has never been saved by a .backup. I >tend to work quickly - perhaps a bit too hastily at times. When I >realize that I have made a stoopid global change or have edited the >meaning out of some text, I am glad to have the .backup. > > > >Its good to know that we are each unique! > > > >- Carol > > >NOTICE BY HEALTH LANGUAGE, INC. >This message, as well as any attached document, contains information from >Health Language, Inc. that is confidential. The information is intended >only for the use of the addressee named above. If you are not the intended >recipient, you are hereby notified that any disclosure, copying, >distribution or the taking of any action in reliance on the contents of >this message or its attachments is strictly prohibited, and may be >unlawful. If you have received this message in error, please delete all >electronic copies of this message and its attachments, if any, destroy any >hard copies you may have created, without disclosing the contents, and >notify the sender immediately. Unless expressly stated otherwise, nothing >contained in this message should be construed as a digital or electronic >signature, nor is it intended to reflect an intention to make an agreement >by electronic means. _ http://liveearth.msn.com NOTICE BY HEALTH LANGUAGE, INC. This message, as well as any attached document, contains information from Health Language, Inc. that is confidential. The information is intended only for the use of the addressee named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this message or its attachments is strictly prohibited, and may be unlawful. If you have received this message in error, please delete all electronic copies of this message and its attachments, if any, destroy any hard copies you may have created, without disclosing the contents, and notify the sender immediately. Unless expressly stated otherwise, nothing contained in this message should be construed as a digital or electronic signature, nor is it intended to reflect an intention to make an agreement by electronic means.
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: [EMAIL PROTECTED] w: www.semitake.com ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
Re: deleting backup files
Assuming Windows, because you specified VB, you may have a reason for wanting to use a script, but you can do this from a Windows command prompt with del *.backup.fm and the /s switch to sweep recursively through sub-directories. If you're unsure about the command, use the /p switch too, to force a confirmation prompt. Another option is to use the Windows Search tool to identify all *.backup.fm files in a directory tree, Ctrl-a to select them all, and Ctrl-x or Del to delete them. Art On 7/23/07, B Hechter [EMAIL PROTECTED] wrote: 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: [EMAIL PROTECTED] w: www.semitake.com -- Art Campbell [EMAIL PROTECTED] ... In my opinion, there's nothing in this world beats a '52 Vincent and a redheaded girl. -- Richard Thompson No disclaimers apply. DoD 358 ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
RE: deleting backup files
I know it's not an answer to the question you are asking, but my advice would be to eliminate the .backup files from the outset by turning off the automatic backup on save option. I find this feature to be largely useless because the .backup file it is *not* really a backup. Rather, it is simply a renamed copy of the *last* *saved* version of the file. If you work for an hour before saving, for example, your backup will be an hour out of date, which can be a big difference. Yes, I suppose it's better than nothing if the working file gets completely destroyed, but in 8 years of using FrameMaker that has never happened to me. I do recommend the autosave option, on the other hand. That feature has saved my bacon on several occasions when FrameMaker has exited unexpectedly. My opinions only; I don;t speak for Intel. Fred Ridder Intel Corp. formerly of Parsippany, NJ From: B Hechter [EMAIL PROTECTED] To: framers@lists.frameusers.com Subject: deleting backup files Date: Mon, 23 Jul 2007 10:13:17 -0700 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: [EMAIL PROTECTED] w: www.semitake.com ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/docudoc%40hotmail.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info. _ Don't get caught with egg on your face. Play Chicktionary! http://club.live.com/chicktionary.aspx?icid=chick_hotmailtextlink2 ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
Re: deleting backup files
- Original Message - From: Fred Ridder [EMAIL PROTECTED] To: [EMAIL PROTECTED]; framers@lists.frameusers.com Sent: Monday, July 23, 2007 2:46 PM Subject: RE: deleting backup files I know it's not an answer to the question you are asking, but my advice would be to eliminate the .backup files from the outset by turning off the automatic backup on save option. I do recommend the autosave option, on the other hand. That feature has saved my bacon on several occasions when FrameMaker has exited unexpectedly. The autosave feature scares me. I work out of a home office, and we have roaming cats. If one walks across a keyboard, it can add or delete all kinds of things in a document. Autosave will happily save the fouled up version. If you're away from the keyboard, it's possible for autosave to run more than once, overwriting even the .backup.fm file. I've made it a habit to hit Ctrl-S regularly, instead. Mike Wickham ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
RE: deleting backup files
I'm with Mike. I find the AutoSave feature brings me more tragedy than joy. I prefer to develop a good, solid, old-fashioned work habit than to rely on that feature. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Wickham Sent: Monday, July 23, 2007 5:42 PM To: Fred Ridder; Frame Users Subject: Re: deleting backup files - Original Message - From: Fred Ridder [EMAIL PROTECTED] To: [EMAIL PROTECTED]; framers@lists.frameusers.com Sent: Monday, July 23, 2007 2:46 PM Subject: RE: deleting backup files I know it's not an answer to the question you are asking, but my advice would be to eliminate the .backup files from the outset by turning off the automatic backup on save option. I do recommend the autosave option, on the other hand. That feature has saved my bacon on several occasions when FrameMaker has exited unexpectedly. The autosave feature scares me. I work out of a home office, and we have roaming cats. If one walks across a keyboard, it can add or delete all kinds of things in a document. Autosave will happily save the fouled up version. If you're away from the keyboard, it's possible for autosave to run more than once, overwriting even the .backup.fm file. I've made it a habit to hit Ctrl-S regularly, instead. Mike Wickham ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/jsgammato%40imprivat a.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info. ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
RE: deleting backup files
I wasn't recommending that anybody should *rely* on the autosave feature. There is no substitute for good work habits. My point was that the autosave option does perform a useful function, while the automatic backup feature is misnamed and does not provide the functionality you expect it to. It's important to note that autosave does *not* perform the same operation as the regular save. There is a separate autosave file that FrameMaker manages, separate from the file that you opened (or that you last saved). Otherwise, FrameMaker would wipe out the restore point that you can get back to with the revert to saved command with every autosave. The invisible autosave file is automatically destroyed after you do a regular save or when you close the document. If you launch FrameMaker after an unexpected exit and it sees a lingering autosave file, it alerts you to that fact and gives you the option to open either the last saved version of the file (the last one you explicitly saved, that is) or the autosaved version. If you open the autosaved version and find garbage, you can always simply close it and open the last saved version instead and you're no worse off than you would be if the autosave option were disabled. It's not foolproof, but I have *never* known it to be destructive. There is nothing scary about it. Also note that the last saved version of a file is never actually overwritten, so it can almost always be recovered. When you do a regular save, the new saved version is written to a new file and the last saved version is either renamed with a .backup secondary extension (if the automatic backup on save option is enabled) or flagged to the OS or file server as available disk space (if automatic backup is disabled). Fred Ridder From: John Sgammato [EMAIL PROTECTED] To: Mike Wickham [EMAIL PROTECTED],Fred Ridder [EMAIL PROTECTED],Frame Users framers@lists.FrameUsers.com Subject: RE: deleting backup files Date: Mon, 23 Jul 2007 18:06:43 -0400 I'm with Mike. I find the AutoSave feature brings me more tragedy than joy. I prefer to develop a good, solid, old-fashioned work habit than to rely on that feature. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Wickham Sent: Monday, July 23, 2007 5:42 PM To: Fred Ridder; Frame Users Subject: Re: deleting backup files - Original Message - From: Fred Ridder [EMAIL PROTECTED] To: [EMAIL PROTECTED]; framers@lists.frameusers.com Sent: Monday, July 23, 2007 2:46 PM Subject: RE: deleting backup files I know it's not an answer to the question you are asking, but my advice would be to eliminate the .backup files from the outset by turning off the automatic backup on save option. I do recommend the autosave option, on the other hand. That feature has saved my bacon on several occasions when FrameMaker has exited unexpectedly. The autosave feature scares me. I work out of a home office, and we have roaming cats. If one walks across a keyboard, it can add or delete all kinds of things in a document. Autosave will happily save the fouled up version. If you're away from the keyboard, it's possible for autosave to run more than once, overwriting even the .backup.fm file. I've made it a habit to hit Ctrl-S regularly, instead. Mike Wickham _ Don't get caught with egg on your face. Play Chicktionary! http://club.live.com/chicktionary.aspx?icid=chick_hotmailtextlink2 ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
Re: deleting backup files
Just to clarify - autosave saves a file with the current file name and .auto.fm extension. It isn't the same as File Save. If you close a file properly, either File Close Yes, save changes, or No, don't save changes, the .auto file disappears. If you perform File Save, the .auto file is deleted; it returns after some document activity occurs and the interval you chose in FIle Preferences passes. If the OS fails, the drive fails, or the power fails, this ungraceful end of operation keeps the .auto. When you restart and reopen the file, FM detects the .auto file and asks if you want to use it. If you say Yes, it's opened as filename.auto.fm, so you still have filename.backup.fm, and filename.fm also. This gives you three files to open under their own names, save to new names, then use File Utilities Compare files to pick-and-choose the pieces you need to reconstruct what you can. Word's autosave feature used to be a substitute for manual save, meaning that it overwrote your good file with whatever experimental content mangling you or your cat had performed. However, more recent Word releases save a separate file, similar to FM's autosave. HTH Regards, Peter ___ Peter Gold KnowHow ProServices ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
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
deleting backup files
Assuming Windows, because you specified VB, you may have a reason for wanting to use a script, but you can do this from a Windows command prompt with del *.backup.fm and the /s switch to sweep recursively through sub-directories. If you're unsure about the command, use the /p switch too, to force a confirmation prompt. Another option is to use the Windows Search tool to identify all *.backup.fm files in a directory tree, Ctrl-a to select them all, and Ctrl-x or Del to delete them. Art On 7/23/07, B Hechter wrote: > 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 -- Art Campbell art.campbell at gmail.com "... In my opinion, there's nothing in this world beats a '52 Vincent and a redheaded girl." -- Richard Thompson No disclaimers apply. DoD 358
deleting backup files
I know it's not an answer to the question you are asking, but my advice would be to eliminate the .backup files from the outset by turning off the "automatic backup on save" option. I find this feature to be largely useless because the .backup file it is *not* really a backup. Rather, it is simply a renamed copy of the *last* *saved* version of the file. If you work for an hour before saving, for example, your "backup" will be an hour out of date, which can be a big difference. Yes, I suppose it's better than nothing if the working file gets completely destroyed, but in 8 years of using FrameMaker that has never happened to me. I do recommend the "autosave" option, on the other hand. That feature has saved my bacon on several occasions when FrameMaker has exited unexpectedly. My opinions only; I don;t speak for Intel. Fred Ridder Intel Corp. formerly of Parsippany, NJ >From: "B Hechter" >To: framers at lists.frameusers.com >Subject: deleting backup files >Date: Mon, 23 Jul 2007 10:13:17 -0700 > >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 DocuDoc at hotmail.com. > >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/docudoc%40hotmail.com > >Send administrative questions to listadmin at frameusers.com. Visit >http://www.frameusers.com/ for more resources and info. _ Don't get caught with egg on your face. Play Chicktionary!? http://club.live.com/chicktionary.aspx?icid=chick_hotmailtextlink2
deleting backup files
- Original Message - From: "Fred Ridder" <docu...@hotmail.com> To: ; Sent: Monday, July 23, 2007 2:46 PM Subject: RE: deleting backup files >I know it's not an answer to the question you are asking, but my > advice would be to eliminate the .backup files from the outset by > turning off the "automatic backup on save" option. > I do recommend the "autosave" option, on the other hand. That > feature has saved my bacon on several occasions when FrameMaker > has exited unexpectedly. The autosave feature scares me. I work out of a home office, and we have roaming cats. If one walks across a keyboard, it can add or delete all kinds of things in a document. Autosave will happily save the fouled up version. If you're away from the keyboard, it's possible for autosave to run more than once, overwriting even the .backup.fm file. I've made it a habit to hit Ctrl-S regularly, instead. Mike Wickham
deleting backup files
I'm with Mike. I find the AutoSave feature brings me more tragedy than joy. I prefer to develop a good, solid, old-fashioned work habit than to rely on that feature. -Original Message- From: framers-bounces+jsgammato=imprivata@lists.frameusers.com [mailto:framers-bounces+jsgammato=imprivata.com at lists.frameusers.com] On Behalf Of Mike Wickham Sent: Monday, July 23, 2007 5:42 PM To: Fred Ridder; Frame Users Subject: Re: deleting backup files - Original Message - From: "Fred Ridder" <docu...@hotmail.com> To: ; Sent: Monday, July 23, 2007 2:46 PM Subject: RE: deleting backup files >I know it's not an answer to the question you are asking, but my > advice would be to eliminate the .backup files from the outset by > turning off the "automatic backup on save" option. > I do recommend the "autosave" option, on the other hand. That > feature has saved my bacon on several occasions when FrameMaker > has exited unexpectedly. The autosave feature scares me. I work out of a home office, and we have roaming cats. If one walks across a keyboard, it can add or delete all kinds of things in a document. Autosave will happily save the fouled up version. If you're away from the keyboard, it's possible for autosave to run more than once, overwriting even the .backup.fm file. I've made it a habit to hit Ctrl-S regularly, instead. Mike Wickham ___ You are currently subscribed to Framers as jsgammato at imprivata.com. 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/jsgammato%40imprivat a.com Send administrative questions to listadmin at frameusers.com. Visit http://www.frameusers.com/ for more resources and info.
deleting backup files
I wasn't recommending that anybody should *rely* on the autosave feature. There is no substitute for good work habits. My point was that the autosave option does perform a useful function, while the automatic backup feature is misnamed and does not provide the functionality you expect it to. It's important to note that autosave does *not* perform the same operation as the regular save. There is a separate autosave file that FrameMaker manages, separate from the file that you opened (or that you last saved). Otherwise, FrameMaker would wipe out the restore point that you can get back to with the "revert to saved" command with every autosave. The invisible autosave file is automatically destroyed after you do a regular save or when you close the document. If you launch FrameMaker after an "unexpected exit" and it sees a lingering autosave file, it alerts you to that fact and gives you the option to open either the last saved version of the file (the last one you explicitly saved, that is) or the autosaved version. If you open the autosaved version and find garbage, you can always simply close it and open the last saved version instead and you're no worse off than you would be if the autosave option were disabled. It's not foolproof, but I have *never* known it to be destructive. There is nothing "scary" about it. Also note that the last saved version of a file is never actually overwritten, so it can almost always be recovered. When you do a regular save, the new saved version is written to a new file and the last saved version is either renamed with a .backup secondary extension (if the automatic backup on save option is enabled) or flagged to the OS or file server as available disk space (if automatic backup is disabled). Fred Ridder >From: "John Sgammato" >To: "Mike Wickham" ,"Fred Ridder" >,"Frame Users" >Subject: RE: deleting backup files >Date: Mon, 23 Jul 2007 18:06:43 -0400 > >I'm with Mike. >I find the AutoSave feature brings me more tragedy than joy. I prefer to >develop a good, solid, old-fashioned work habit than to rely on that >feature. > >-Original Message- >From: framers-bounces+jsgammato=imprivata.com at lists.frameusers.com >[mailto:framers-bounces+jsgammato=imprivata.com at lists.frameusers.com] On >Behalf Of Mike Wickham >Sent: Monday, July 23, 2007 5:42 PM >To: Fred Ridder; Frame Users >Subject: Re: deleting backup files > > >- Original Message - >From: "Fred Ridder" >To: ; >Sent: Monday, July 23, 2007 2:46 PM >Subject: RE: deleting backup files > > > >I know it's not an answer to the question you are asking, but my > > advice would be to eliminate the .backup files from the outset by > > turning off the "automatic backup on save" option. > > I do recommend the "autosave" option, on the other hand. That > > feature has saved my bacon on several occasions when FrameMaker > > has exited unexpectedly. > >The autosave feature scares me. I work out of a home office, and we have > >roaming cats. If one walks across a keyboard, it can add or delete all >kinds >of things in a document. Autosave will happily save the fouled up >version. >If you're away from the keyboard, it's possible for autosave to run more > >than once, overwriting even the .backup.fm file. I've made it a habit to >hit >Ctrl-S regularly, instead. > >Mike Wickham _ Don't get caught with egg on your face. Play Chicktionary!? http://club.live.com/chicktionary.aspx?icid=chick_hotmailtextlink2
deleting backup files
Just to clarify - autosave saves a file with the current file name and .auto.fm extension. It isn't the same as File > Save. If you close a file properly, either File > Close > Yes, save changes, or No, don't save changes, the .auto file disappears. If you perform File > Save, the .auto file is deleted; it returns after some document activity occurs and the interval you chose in FIle > Preferences passes. If the OS fails, the drive fails, or the power fails, this ungraceful end of operation keeps the .auto. When you restart and reopen the file, FM detects the .auto file and asks if you want to use it. If you say "Yes," it's opened as filename.auto.fm, so you still have filename.backup.fm, and filename.fm also. This gives you three files to open under their own names, save to new names, then use File > Utilities > Compare files to pick-and-choose the pieces you need to reconstruct what you can. Word's autosave feature used to be a substitute for manual save, meaning that it overwrote your good file with whatever experimental content mangling you or your cat had performed. However, more recent Word releases save a separate file, similar to FM's autosave. HTH Regards, Peter ___ Peter Gold KnowHow ProServices