I've been hit lately by a virus. This virus has randomly renamed alot of files in my computer like videos images and contacts and it made those files without an extension. I've managed to recover some photos with the help of an SO renaming batch file answer. Some files I can not recognize either they're videos or images and couldn't know their formats either. Any help to Detect those files format ? if there's a solution non programatically would be appreciated much.
TrID may help you identify those files.
- Download the program and definitions.
- Place them in some directory.
- Add that directory to the PATH:
- Press Win+R,
systempropertiesadvanced, click OK,
- Click Environment variables... button and look for PATH in the lower box,
- Add a semicolon and TrID's directory.
- You're now able to run TrID by typing
tridin the command line. Examples are available on the program's site.
Some files have their type defined in their innards (it's called a magic number). For example, all windows applications and possibly all DLLs have first two bytes
MZ. So sometimes you need to look in HEX editor to tell what is what. Example:
If you can, go download shareware Total Commander, place cursor over any file and hit F3 (View).
But sometimes even that won't help, especially with custom file formats some company might produce, but I hope this helps you a bit.
You can install kind of a un*x layer via the cygwin environment, and then use the file utility (included in package base), which checks the magic number of a file and can also give some additional informations:
$ file * img234.png: PNG image data, 834 x 354, 8-bit/color RGB, non-interlaced folder: directory animation.flv: Macromedia Flash Video charmap.pdf: PDF document, version 1.4 charmap.tex: LaTeX 2e document, ASCII text song.mp3: MPEG ADTS, layer III, v1, 128 kbps, 44.1 kHz, JntStereo dvd.iso: # UDF filesystem data (version 1.5) 'HOLIDAY_SLIDESHOW '
Indeed, cygwin is rather a over-motorized solution (minimal installation around 20MB) just to run one command, but then you also have a sophisticated CLI... one of the things I miss the most in Windows.