Cannot delete Folder: It is being used by another person or program.

If you get this error:

Or one of these:
Cannot delete file: Access is denied
There has been a sharing violation.
The source or destination file may be in use.
The file is in use by another program or user.
Make sure the disk is not full or write-protected and that the file is not currently in use.

You can use this free tool to delete the file or folder:


How to Delete Windows File or Folder

Method 1

Reboot, then delete.

Method 2

Open a command line window (WindowsKey + R, enter: cmd). Move to the folder in question by means of CD commands like CD \ and CD foldername.

Delete the file or folder by using the DEL command to delete files or the RMDIR (remove directory) command to remove directories (folders).

Method 3

If this, on its own, is still not enough, then leave the command line window on the desktop, open Task Manager (Ctrl + Shift + Esc), and kill all explorer.exe tasks. Your desktop will go blank, except for the windows already open.

Now try to delete the offending file by means of the DEL command, or folder by means of the RMDIR (remove directory) command, in the command line window, as described above.

After that, in the command line window enter:


to restart your desktop. If you closed the command line window, you can still restart explorer by opening the Task Manager by holding down the Ctrl and Shift keys and briefly pressing the Esc key. In Task Manager select Applications, New Task and enter: explorer

Method 4

If the previous method fails, particularly with multimedia files, log off, then log on again, but do not select the file in Windows Explorer. The safest way is not to open Windows Explorer in the first place.

Then try the previous method again.

Method 5

An even stronger measure would be to reboot, then try the previous methods again. This would work, for example, if a service has the file open.

Method 6

[Thanks to John Barrington:] If you can't delete a problem file, try deleting the folder that contains the problem file. If this doesn't work, try this next item.

If the problem file and its folder, we'll call (A), is within another folder, we'll call (B), try to delete the folder (B) along with any troublesome contents.

Of course, you want to make sure, if you have any other important files or folders within either folder, that they are saved in another location first.

Method 7

Begin like the previous method, but try also

rmdir /s foldername

(replace foldernamewith the name of the folder to be deleted). This command should delete a folder with all its subfolders.

If the folder name contains one or more spaces, enclose it in quotes. Example:

rmdir /s "folder name"

Note that the abbreviated command rd can be used in place of rmdir.

Method 8

If the folder name contains strange characters, use a command line window again, but use the DIR /X command to find the short name (for example: PROGRA~1) and use the short name instead. The short name is DOS compatible and has no more than 8 characters for the main name, a period, then no more than 3 characters for the extension.

Retry the previous methods that use a command line window, but use the short name now.

Note: Sometimes an illegal file name can cause Windows Explorer to use nearly 100% of the CPU time.

Sometimes the abbreviated name can have a number other than one and can have an extension. If the above does not work, proceed as follows.

  1. Open a command line window (Start, Run, type: cmd, press the return/enter key).
  2. Navigate to the folder using "cd .." and "cd pathname", where pathname is the name of the next subfolder you want to go into.
  3. Type dir /x to see the actual real short name of the subdirectory. Critically: This may include an extension, e.g. "ABDCEF~1.XYZ".
  4. Type "rmdir /s", replacing the example name with your actual folder name.

Method 9

Boot into safe mode and try to delete the file or folder there.

Method 10

If you're trying to delete a program file, like one with the extension .exe, the cause could be that the program is currently running. Stop it, then delete the file.

If the program starts automatically, check the article Autorun causes on how to remove the start command. Do it, reboot, then delete the file.

Method 11

If this also doesn't work, there is a way to rename a file or folder during the boot process. For this you need to use the registry editor REGEDIT.EXE. See the Registry warning for a general warning.

Create an entry in

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Session Manager\

named PendingFileRenameOperations of type REG_MULTI_SZ. In pre-XP Windows versions you have to use REGEDT32.EXE to create this value type.

The first line of each pair is the current file or folder path and name with \??\ in front of it.

The second line of each pair is the new file or folder path and name with !\??\ in front of it.

Example for one pair which moves the file mfc42.dll from the temp folder to the system32 folder and overwrites any existing file at the destination:


You can add as many pairs as you like. The move operation is performed directly after the next reboot. You can also give folder paths, so the folder will be renamed. But both paths have to be local.

There is a Windows API call for this, named MoveFileEx, and somebody in Germany has even written a utility named MoveEx for it. You can download it from Use it if you need this function often. A Posix utility from a Windows Resource Kit named mv.exe also does it, just in case you still have the resource kit around.

Method 12

Boot into another operating system to delete the file from there. The other operating system can be, for example, another installation of Windows, BartPE, Knoppix, or any operating system that can read the file system used (NTFS or FAT32).

Method 13

Remove the hard disk from the computer and connect it to another computer. Delete the files or folders there.

Method 14

If you cannot delete a file or folder because it is in use, you can use one of the mostly free utilities, such as Unlocker.

Method 15

If the cause is that the path and file name is too long, first try to rename folders in the path with shorter names.

If that doesn't work, you can use the following method, reported 2007-05-17 by Mark Briody:

Open a command line window and use the subst command to create a virtual drive to the folder containing the long file name, e.g. (all in one line):

subst x: "C:\Documents and Settings\briodym\Favorites\Mark\Gadgets and Hardware\Hardware\Stores\eBuyer"

Then change to the virtual drive x:, and you should be able to delete, rename, and move files and folders.

Finally, to clean up, remove the subst again with:

subst x: /d


Vista SP1 File Removal Tool

What is Vsp1cln.exe (Vista SP1 File Removal Tool)?

Vsp1cln.exe is an optional tool that you can run after you install SP1. This tool removes older versions of components that have been updated in SP1, which are stored during the installation in case you need to uninstall SP1 later. Saving these older components increases the amount of disk space that is used. Typically, you should run Vsp1cln.exe if you want to reclaim this disk space after applying SP1 and if you will not need to uninstall SP1. Note, however, that you cannot uninstall SP1 after you run this tool.
You will get more free space on your computare after run this tool. You can read more about Vista SP1 File Removal Tool

Opensource Virtualization for x86 hardware

"VirtualBox is a general-purpose full virtualizer for x86 hardware. Targeted at server, desktop and embedded use, it is now the only professional-quality virtualization solution that is also Open Source Software."

Download VirtualBox

VirtualBox Documentiation (End-User)

VirtualBox Documentation


Fix vista activation DNS error 0x8007232b

During Windows Web Server 2008 Activation if you get this error:

Windows Activation Error: A problem occurred when Windows tried to activate.
Error Code 0x8007232B.
For a possible resolution, click More Information. Contact your system administrator or technical support department for assistance.

DNS name does not exist.

Fix vista activation DNS error 0x8007232b:
Control Panel > System > Windows activation and then click "Change Product Key".
Enter the same product key you have been given by microsoft. (It's the same key you used to install Win Vista.) This time your windows will activate successfully.

Run Linux inside Windows with andLinux

Site Description:
is a complete Ubuntu Linux system running seamlessly in Windows 2000 based systems (2000, XP, 2003, Vista; 32-bit versions only). This project was started for Dynamism for the GP2X community, but its userbase far exceeds its original design.

andLinux uses CoLinux as its core which is confusing for many people. CoLinux is a port of the Linux kernel to Windows. Although this technology is a bit like running Linux in a virtual machine, CoLinux differs itself by being more of a merger of Windows and the Linux kernel and not an emulated PC, making it more efficient. Xming is used as X server and PulseAudio as sound server.

andLinux is not just for development and runs almost all Linux applications without modification.

Download andLinux

Install andLinux


How to Windows 2000 PPP

Basicly this howto explain how to configure ppp using a Windows 2000 desktop.

How to Run Linux on iPAQ Handhelds

How to Run Linux on iPAQ Handhelds

How to Run Remote X Applications

This HOWTO describes how to run remote X applications. How to have an X program display on a different computer than the one it's running on. How to make an X program run on a different computer than the one you're sitting at. The focus of this HOWTO is on security and this HOWTO also contains information on running X applications locally, but with a different user-id, and information on setting up a computer as an X terminal.

Chkrootkit Checking bindshell INFECTED (PORTS: 465)

If you are running Chkrootkit on a cPanel server, or other it may be a false positive because Chkrootkit only checks the port 465 that should be used to secure smtp.

Work table pictures

All the people who works daily on a computer need to have a work space. Some time is very interesting how people organise their objects.

Can't connect to local MySQL server through socket

I you are reding this, probably you are getting the next error:

/usr/local/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists

To fix it, and if you are running cPanel just try to run the next commands:

# ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock

# /scripts/mysqlup --force

Make scripts available to all users

If you have a cgi or php script that you want to make available to all users on your server, you just need to add an Alias in


pointing to a shared directory owned by root:wheel

Run Windows and Linux together simultaneously

"With the latest release of VirtualBox, Windows and Linux can be run together simultaneously, and you don't even need to switch between the two. Using the seamless Windows feature of VirtualBox, you can run two different operating systems simultaneously on a single PC and you can use the applications of both operating systems from the same desktop simultaneously.

This has been made possible by the combined efforts of VirtualBox and SeamlessRDP that is meant for seamless Windows support for rdesktop. The rdesktop, ie, the remote desktop feature helps in creating X11 Window for each Windows application that you will run from the host machine, further the application that is running can be moved and resized."

Read Full Article: How to run Linux and Windows in the same place

Before we proceed, you should have the latest VirtualBox 1.5.2 installed on your system. For this download VirtualBox 1.5.2 rpm for openSUSE 10.3 from the link provided in the direct hit box. For installation first navigate to the folder where you have downloaded the rpm file and then run the following commands in the terminal.

# rpm -ivh VirtualBox-1.5.2_25433 _openSUSE103-1.i586.rpm

# /etc/init.d/vboxdrv setup

For running VirtualBox, navigate to Computer > more application and on the new application section click on the 'Innotek VirtualBox' icon."

Linux beginners guide

This is a online guide that can answer to that questions:
1. What is Linux? Learn more about the free operating system
2. Why not Windows? Why should avoid using Microsoft Windows
3. Making the switch Where to download and how to step into Linux

Visit: Get GNU/Linux

Cisco Nexus 7000 Network Switch

This Switch Can Route 15 Terabits Per second with future availability of 40Gb and 100 Gb Ethernet and unified fabric I/O modules.