Monday, October 18, 2010

Dos Script For Unhiding System Hidden Folders That Were Hidden By The Virus In Your Flash Drive (Pen Drive) Or Hard drive

There are some virus which hide the all the folder and its sub folders on the flash drive(pen drive) or Hard drive. These file cannot be unhidden using the settings...  so here is a solution.....




First use a anti-virus software an clean your flash drive.........then do the instructions below or download Folder & File Unhider.bat and run it in your flash drive or hard drive.


Warning : Do no run this in your C drive Unless virus hides files in your C Drive. If you run this in your C drive it will Unhide all the System files that were hidden by the OS for protection reasons.... you can reset it to defaut in folder Option....


Instructions
1. Copy the code bellow to notepad and save as "Folder & File Unhider.bat" on your desktop
2. Copy the "Folder & File Unhider.bat" form desktop to your flash drive...
3. Now run the "Folder & File Unhider.bat" which you copied to your flash drive.... do not run the "folderUnhider.bat" which is on your desktop..


:: code start from here
@echo " --- by sasi ---"
::print "--- by sasi ---"
@echo off
::turn of echo

@DIR /S /D /b > dirc.txt
::write the output of the dir command to  dirc.txt file

@for /F "delims=" %%i in (dirc.txt) do attrib "%%i" -s -h & echo on & echo %%i & echo off
::through loop
::get the path of the hidden files from dirc.txt and
::set them as unhidden non-system files....
::print the path

@del dirc.txt
::delete dirc.txt

@echo on
::turn on echo

@pause
::display "press any key to continue on the prompt"...

::code ends here

Download link for Folder & File Unhider.bat : http://www.mediafire.com/?a650b8gi7naf06q 

if this post is use full please leave a comment...............

9 comments:

Sasi said...

dos command for unhide folder : attrib "folder/file name" -h -s

Sasi said...

To hide hide a folder and all sub folders change the code : @for /F "delims=" %%i in (dirc.txt) do attrib "%%i" -s -h & echo on & echo %%i & echo off

to

@for /F "delims=" %%i in (dirc.txt) do attrib "%%i" -s +h & echo on & echo %%i & echo off

Sasi said...

dos command for unhide system folder : attrib "folder name" -h -s

Anonymous said...

if i want to hide C:\MyFolder and all sub folder inside Myfolder. what should i code? Put "C:\MyFolder" in dirc.txt ?

Anonymous said...

i want to hide all files and folder in MyFolder.

Sasi said...

1. just change the -h to +h in the code.
2. save the code file as FolderHider.bat in C:\MyFolder.
3.double-click the FolderHider.bat in C:\MyFolder

Anonymous said...

thk ^^

Anonymous said...

Great, thanks
however, I need first to manually -s -h -r the root folders and then I found the files inside them

Sasi said...

-[ however, I need first to manually -s -h -r the root folders and then I found the files inside them ]

if the your root folder is hidden, but not its sub folders, manually -s -h -r the root folder will unhide the root folder. since the root folder's sub folders were not hidden at the first place they were visible..

Post a Comment

Note: Only a member of this blog may post a comment.

Popular Posts