?
Solved

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

Posted on 2010-09-06
8
Medium Priority
?
308 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
[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
  • 6
  • 2
8 Comments
 
LVL 11

Accepted Solution

by:
slemmesmi earned 2000 total points
ID: 33610647
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
ID: 33611026
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
ID: 33615151
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 11

Assisted Solution

by:slemmesmi
slemmesmi earned 2000 total points
ID: 33624234
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
 
LVL 11

Expert Comment

by:slemmesmi
ID: 33626184
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
ID: 33628373
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
ID: 33633655
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
ID: 33699635
Dear Atouray,

Please let me know the result of your try.

Kind regards,
Soren
0

Featured Post

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

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

OfficeMate Freezes on login or does not load after login credentials are input.
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 walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…
Suggested Courses

752 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