Link to home
Start Free TrialLog in
Avatar of Atouray
Atouray

asked on

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

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.
ASKER CERTIFIED SOLUTION
Avatar of slemmesmi
slemmesmi

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Atouray
Atouray

ASKER

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.
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 https://www.experts-exchange.com/questions/22944345/Batch-file-to-delete-files-greater-than-a-certain-size.html

Kind regards,
Soren
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
Avatar of Atouray

ASKER

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.
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
Dear Atouray,

Please let me know the result of your try.

Kind regards,
Soren