Solved

Tool or script to detect and copy multimedia and installer files from network.

Posted on 2010-09-06
8
301 Views
Last Modified: 2012-05-10
We have about 1TB of data and we think most of it may be multimedia and installer files. We need this system back but the size of the data is affecting our backups. Thus was just wondering if there's a tool there or script to look for all such files and copy them somewhere else?
Please we need this asap.
0
Comment
Question by:Atouray
  • 6
  • 2
8 Comments
 
LVL 11

Accepted Solution

by:
slemmesmi earned 500 total points
Comment Utility
Dear Atouray,

check out the WinDirStat, which is a great free tool you can use to display which big files exist on your store: http://en.wikipedia.org/wiki/WinDirStat
While it can display those files for you, it will enable you to decide what to do with the files.
Alternately I'd recommend using Microsoft "forfiles" for finding files of a certain size, and then running a (move or copy) command towards those.

Kind regards,
Soren
0
 

Author Comment

by:Atouray
Comment Utility
slemmesmi: I need a specific solution that works not only recommendations which points to more research.
I tried WinDirStat it looks to be a good tool for analysis but not moving files as one have to resort to command prompt. I already mention the type of files I want moved.

Thanks.
0
 
LVL 11

Expert Comment

by:slemmesmi
Comment Utility
Dear Atouray,

ok I understand - here is a script you can use as basis:

@ECHO OFF

REM INITIALIZE VARIABLES
SET Source=C:\Kilde
SET MoveToDestination=C:\Target
SET SizeToCheckForInBytes=1839104

REM Move .iso files
SET Extension=.iso
FOR /R "%SOURCE%" %%F IN (*%Extension%) DO (
rem        IF "%%~zF" GTR "%SizeToCheckForInBytes%" (DIR "%%F"))
      IF "%%~zF" GTR "%SizeToCheckForInBytes%" (MOVE "%%F" %MoveToDestination%))

REM Move .mp3 files
SET Extension=.mp3
FOR /R "%SOURCE%" %%F IN (*%Extension%) DO (
rem        IF "%%~zF" GTR "%SizeToCheckForInBytes%" (DIR "%%F"))
      IF "%%~zF" GTR "%SizeToCheckForInBytes%" (MOVE "%%F" %MoveToDestination%))

:END

Eventually also check out http://www.experts-exchange.com/Programming/Languages/Scripting/Shell/Batch/Q_22944345.html

Kind regards,
Soren
0
 
LVL 11

Assisted Solution

by:slemmesmi
slemmesmi earned 500 total points
Comment Utility
Dear Atouray,

I've had a look into what can be done using Microsoft's robocopy tool, and that may be easier for you to use (since it is included with Windows Server 2008) and it also nicely can create subfolder structure at destination for files it moves.
Here is a simple script (between the '***' lines), which I believe is self-explaining:
***
@ECHO OFF

REM INITIALIZE VARIABLES
SET Source=C:\Kilde
SET MoveToDestination=C:\Target

REM Move .iso files bigger than 100MB
SET Extension=.iso
SET SizeToCheckForInBytes=104857600
robocopy %SOURCE% %MoveToDestination% *%Extension% /MIN:%SizeToCheckForInBytes% /S /MOV

REM Move .mp3 files bigger than 50MB
SET Extension=.mp3
SET SizeToCheckForInBytes=52428800
robocopy %SOURCE% %MoveToDestination% *%Extension% /MIN:%SizeToCheckForInBytes% /S /MOV
:END
***

Does this solve your question, or do you wish more?

Kind regards,
Soren
0
Too many email signature changes to deal with?

Are you constantly being asked to update your organization's email signatures? Do they take up too much of your time? Wouldn't you love to be able to manage all signatures from one central location, easily design them and deploy them quickly to users. Well, you can!

 
LVL 11

Expert Comment

by:slemmesmi
Comment Utility
Dear Atouray,

I understood in your question you needed the solution asap - I've provided the solution now.
Please confirm this works for you.

Kind regards,
Soren
0
 

Author Comment

by:Atouray
Comment Utility
slemmesmi:
Sorry for not responding earlier, our account was lockout and it's just being activated.
I will try the last solution using robocopy and get back to you asap. Also we expecting thursday and friday to be holidays if so I will likely be able to get back to you on monday.

Thanks.
0
 
LVL 11

Expert Comment

by:slemmesmi
Comment Utility
Dear Atouray,

thank you for your reply.
Please don't hesitate to come back here, if you need anything further in this regard.

Kind regards,
Soren
0
 
LVL 11

Expert Comment

by:slemmesmi
Comment Utility
Dear Atouray,

Please let me know the result of your try.

Kind regards,
Soren
0

Featured Post

Shouldn't all users have the same email signature?

You wouldn't let your users design their own business cards, would you? So, why do you let them design their own email signatures? Think of the damage they could be doing to your brand reputation! Choose the easy way to manage set up and add email signatures for all users.

Join & Write a Comment

I had a question today where the user wanted to know how to delete an SSL Certificate, so I thought that I would quickly add this How to! Article for your reference. WHY WOULD YOU WANT TO DELETE A CERTIFICATE? 1. If an incorrect certificate was …
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…

771 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now