Recover Hidden Files From Flash Drives or External Hard Disks Due to Virus Infection

If the files and folders in your external hard disk or flash drive have turned into shortcuts or are hidden, here is one solution to recover your data. Operating system used – Windows 7.

  1. Install good antivirus and scan entire computer including the flash drive/external hard disk.
  2. Go to Control Panel, Folder Options, select VIEW tab, select “Show hidden files, folders and drives” and uncheck “Hide protected operating system files (recommended)” now click APPLY

    Folder Options
    Folder Options
  3. Open command prompt (press Win+R, type cmd, press enter), assuming ‘G:‘ as the letter of affected drive, enter this command-

    attrib -h -r -s /s /d g:\*.*

    replace ‘g:’ with other drive letter if needed.

You can check your flash drive/external hard disk, the data should be visible. You can restore the original folder options.

Advertisements

Installing rmagick gem on Windows 7

English: Logo for ImageMagick

I was trying to create a blog based on locomotivecms , but the ‘bundle install’ command failed to install the rmagick gem.

RMagick is an interface between the Ruby programming language and the ImageMagick® and GraphicsMagick image processing libraries.

So here is the solution.. worked for Windows 7 64bit, should also work for 32bit machines.

Prerequisites:
Ruby > 1.8.6
DevKit (any version)
No other ImageMagick installation or PATH entry

Step 1:
Installing ImageMagick:

Download ImageMagick:

http://imagemagick.spd.co.il/binaries/ImageMagick-6.8.0-3-Q16-windows-dll.exe

Install ImageMagick:
*Important: The installation path should NOT contain any spaces.

Ideally select “C:\ImageMagick″

Please make sure to select the below options:

Step 2:
Installing rmagick:

Use the following command to install rmagick gem:

gem install rmagick --version=2.12.2 --platform=ruby -- --with-opt-lib=c:/ImageMagick/lib --with-opt-include=c:/ImageMagick/include

i’m installing version 2.12.2 as it is needed by locmotive cms, if you skip the version parameter, 2.13.1 will be installed.

Happy Coding 🙂

credits – Food for Thought