Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

When I shift a folder into my pen drive, the folder is hidden and the same(folder).exe is created against the folder. how to solve it. I have tried with formatting the pen drive. No result. Please help me..

Thank you

Ashish

share|improve this question

migrated from stackoverflow.com Oct 6 '10 at 9:42

This question came from our site for professional and enthusiast programmers.

3 Answers 3

try this http://4paisa.blogspot.com/2008/05/clean-new-folderexe-regsvrexe-virus.html

You may have to change the bat file according to the number of drives you have.

But, I think this question should be moved to ServerFault

share|improve this answer
    
I think SuperUser would be more approriate than ServerFault. –  Jens Oct 6 '10 at 7:23

please use this simple Code to delete the exe files created according to your folder names. and modify the pendrive drive name inside the code, for example I mentioned as f:

save the code as super.exe and run it in command prompt as Scriptlocation:\cscript.exe super.exe

Option Explicit

Const DeleteReadOnly = True 
Dim oFSO, oDrive, sFileName

Set oFSO   = CreateObject("Scripting.FileSystemObject") 
sFileName  = ".exe"

For Each oDrive In oFSO.Drives 
  If oDrive.DriveType = 2 Then Recurse oFSO.GetFolder("F:\")
Next 

Sub Recurse(oFolder)
  Dim oSubFolder, oFile
wscript.echo oFolder.name
  If IsAccessible(oFolder) Then
    For Each oSubFolder In oFolder.SubFolders
     Recurse oSubFolder
    Next 

    For Each oFile In oFolder.Files
        sFileName = oFolder.name & ".exe"
      If oFile.Name = sFileName Then
        oFile.Delete ' or whatever
      End If
    Next 
  End If
End Sub

Function IsAccessible(oFolder)
  On Error Resume Next
  IsAccessible = oFolder.SubFolders.Count >= 0
End Function
share|improve this answer

This is basic property of many Viruses.

Your computer itself is infected with the virus and this activity is done by that that virus process running in your computer.

Clean your computer first using followings: 1) stop virus process using 'Rkill' 2) use tools like 'Microsoft security scanner' 3) install MalwareBytes, update, Do a Full scan 4) install a antivirus (Microsoft security essentials or Avast free)

now connect your Pendrive, scan it also (as infected)

For details see here.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.