Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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


share|improve this question

migrated from Oct 6 '10 at 9:42

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

try this

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:\")

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

    For Each oFile In oFolder.Files
        sFileName = & ".exe"
      If oFile.Name = sFileName Then
        oFile.Delete ' or whatever
      End If
  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


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