Re: Script to delete files older than 30 days old

Tech-Archive recommends: Speed Up your PC by fixing your registry



Gidday,

I Use the NT Res Kit tool Robocopy.exe. I know it's not VB Script but works
fine for me.

<start script>
@echo off
REM *******************************************
REM
REM Written by Wocks 24/09/2002
REM
REM This script will delete files older than 15
REM days from the system date.
REM
REM *******************************************

robocopy E:\Share\Robocopy\logfile /e /z /minage:15 /move
e:\Share\Robocopy\deleted_logs
robocopy E:\Share"\Intelligent Disaster Recovery\IDR_Files" /e /z /minage:15
/move e:\Share\Robocopy\deleted_logs
rd /s /q E:\Share\Robocopy\deleted_logs
exit
<end script>

Wocka

"Anthony Litterio" <tlitterio@xxxxxxxxxxxx> wrote in message
news:Ohk0xb6OFHA.2728@xxxxxxxxxxxxxxxxxxxxxxx
> Here is what I have and need, as I am not a scripter. I have digital
> dictation system that attorneys dictate into a digital voice recorder and
> download to a network share point where their secretaries can transcribe
> it. When the attorneys download the voice files from their systems to the
> server share, it creates a backup of every file on their machine under
> their profile.
>
> We have roaming profiles setup for the users and all of these files are
> being copied to the roaming profile on the server. I would like a login
> or shutdown script that will automatically delete the files from their
> local machines based on a time frame, say anything over 30 days old.
>
> Any help would be appreciated, as I said before I am not a scripter, and
> this is taking a lot of space on the server and making our backups
> extremely long.
>
> Thanks
> Tony
>


.



Relevant Pages

  • Re: Win 98 client WSH "Can not find script file"
    ... I believe that the batch file is verbatim off of Richard's ... REM ** This only works on Win9x clients. ... REM ** Execute VBScript logon script program. ... The domain controller is the only AD server on the network. ...
    (microsoft.public.windows.server.scripting)
  • Re: CMD.EXE
    ... personell, server and share names. ... REM * PLACE FONTS IN HEALTHCARE USERS FONT FOLDER * ... > Something in your script is causing a hang condiiton. ...
    (microsoft.public.win2000.group_policy)
  • Batch ntbackup to external hard drives (new version - Sept 2006)
    ... Below is a new version of the backup script that I posted to USENET ... Disk drives are usually more portable than tape drives, ... rem 1) Edit the Script Customizations ...
    (microsoft.public.windows.server.general)
  • automate dcpromo during nt4 pdc upgrade to W2k3 DC
    ... I am attempting to script the upgrade of a NT4 PDC to a W2K3 domain ... I have set the UnAttendMode to ... FullUnattended and the upgrade works perfectly up to the point where the ... @rem SetupMgrTag ...
    (microsoft.public.windows.server.migration)
  • Re: Deploying Office 07 with Group Policy
    ... Microsoft Online Partner Support ... Please disable the GPO. ... |> the following script to the Computer Startup Script. ... |> REM Environment customization begins here. ...
    (microsoft.public.office.setup)