Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Prevent auto-deletion of recovery/autos ave docunents

Posted on 2014-12-24
13
Medium Priority
?
81 Views
Last Modified: 2015-01-02
I have a client who has a habit if closing (no save) documents after several hours of work. It always happens up against a filing deadline.
I have auto save set fire every 5 minutes in both programs. But the auto save docs are deleted on a proper exit or save.

I am thinking of a batch file that runs every five minutes that copy the auto recover folder.

Do any of you have a note elegant solution?
0
Comment
Question by:Alisanne
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 6
13 Comments
 
LVL 25

Expert Comment

by:NVIT
ID: 40517140
the auto save docs are deleted on a proper exit or save.
Set "Keep the last autosaved version if I close without saving". https://support.office.com/en-in/article/Help-protect-your-files-in-case-of-a-crash-551c29b1-6a4b-4415-a3ff-a80415b92f99
0
 

Author Comment

by:Alisanne
ID: 40517167
I have that done as well. But they draft/use alot of Wordperfect docs as well.  In trying to preserve all versions of the auto recover docs "just in case" as each loss is several hundred dollars of lost billing.

Also I am tattooing but at what point are the recovery versions deleted in word (2010) if that option is checked. They don't always realize right away what they have done.  :(
0
 

Author Comment

by:Alisanne
ID: 40517169
Sorry for typos. But the goal is to have many options, and not just immediately.  But to be able to go to recovery files at a later date as well, when the programs have already deleted them.

The users are not as sophisticated as I would like,  and the discovery has sometimes been delayed.
0
On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

 
LVL 25

Expert Comment

by:NVIT
ID: 40517183
One option is to have robocopy copy changes every minute:
robocopy "C:\Users\username\AppData\Roaming\Microsoft\Word\*.asd" "c:\Backups\AutoSaves" /MOT:1

Open in new window

But, this would just keep 1 version, overwriting any existing. Still, although you may have multiple versions of .ASD files, it may be what you need.
0
 

Author Comment

by:Alisanne
ID: 40517225
That is probably what I'll do. But maybe a script that copies  "folder" to "folder-stamp" on a 5 minute repeat. Then I could run another script that deletes all the copies more than 30 days old.

Only problem is I would want all this to run silently in the back ground.
0
 

Author Comment

by:Alisanne
ID: 40517226
That is probably what I'll do. But maybe a script that copies  "folder" to "folder-stamp" on a 5 minute repeat. Then I could run another script that deletes all the copies more than 30 days old.

Only problem is I would want all this to run silently in the back ground.
0
 
LVL 25

Expert Comment

by:NVIT
ID: 40517233
That would work, too. You could use a combination of:
1. A .bat file with MD and COPY commands.
2. You can also include the 30 day cleanup in the same .bat.
3. Task Scheduler to run the .bat on a 5 min basis.
0
 
LVL 25

Accepted Solution

by:
NVIT earned 2000 total points
ID: 40517241
Maybe something like this:
set TgtDirRoot=c:\Backups
call DateTime-YYMMDDHHMMSSUU.bat
REM e.g. DateTimeNow=2014122315515796
set TgtDir=%TgtDirRoot%\%DateTimeNow%
md %TgtDir%
copy "C:\Users\username\AppData\Roaming\Microsoft\Word\*.asd" %TgtDir%

Open in new window


If you don't have something like DateTime-YYMMDDHHMMSSUU.bat:

@ECHO OFF
set DateTimeNow=
set Dt=%date%
set Tm=%time%
REM e.g.
REM Fri 12/19/2014
REM 8:20:04.13
for /f "tokens=2-4 delims=/ "  %%a in ("%date%") do (set MM=%%a& set DD=%%b& set YY=%%c)
for /f "tokens=1-4 delims=/:." %%a in ("%time%") do (set /a Hr=%%a& set Min=%%b& set Sec=%%c& set Mic=%%d)
REM If the hour is single digit, prefix it with a zero.
if %Hr% lss 10 set Hr=0%Hr%
set DateTimeNow=%YY%%MM%%DD%%Hr%%Min%%Sec%%Mic%
for %%a in (Dt Tm MM DD YY Hr Min Sec Mic)  do (set %%a=)

Open in new window

0
 

Author Comment

by:Alisanne
ID: 40517246
That's pretty cool!  I'll play with that. Then I'll set both programs to auto backup into the same directory.

I'll leave this question open until I test if that's ok with you.
0
 
LVL 25

Expert Comment

by:NVIT
ID: 40517277
No problem.

Note that I haven't taken into account:
1. Your WordPerfect files. But, that can probably be incorporated easily into the current solution.
2. Cleaning up the 30 day old files. That can be added in, comparing the current date against each of the existing DateTimeNow folders.
0
 

Author Closing Comment

by:Alisanne
ID: 40525382
Thank you so much!
0
 

Author Comment

by:Alisanne
ID: 40527183
Followup on this Question:

I created the bat files for 3 separate locations (WP .bk# files, MS Word .asd files, and MS Word Unsaved files).

I created a folder for each (BackupWP, BackupMSW, BackupUnsaved.

I modified the examples you gave me for each. and placed 2 .bat files in each folder (DateTime.bat, and CopyFiles.bat).

If I run CopyFiles.bat manually, it works perfect! :)

If I create a scheduled item to run Copyfiles.bat it does not create the DateStamp folder and just copies into the Backup folder. thus overwriting the copied files each time.  

Any ideas why if run from the scheduler, it does not run/use the date/time folder? should I combine the two .bat files?

I have attached the files I am using for your review.
BackupWP.zip
0
 
LVL 25

Expert Comment

by:NVIT
ID: 40528429
I messaged you,  Alisanne
0

Featured Post

Enroll in September's Course of the Month

This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Word is a program we have all encountered at some point, but very few of us have dug deep into its full scope of features, let alone customized it to suit our needs. Luckily making the ribbon (aka toolbar, first introduced in Word 2007) wo…
When trying to connect from SSMS v17.x to a SQL Server Integration Services 2016 instance or previous version, you get the error “Connecting to the Integration Services service on the computer failed with the following error: 'The specified service …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question