Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: One folder with files, inside a number of empty folders

10 Dec 2012   #21
Melita

Windows 7 Home Premium 64bit
 
 

Thank you for taking all this trouble. I will await your response.

Best regards.


My System SpecsSystem Spec
.
11 Dec 2012   #22
Sir George

Windows 7 Professional x64
 
 

Quote   Quote: Originally Posted by Melita View Post
Thank you for taking all this trouble. I will await your response.

Best regards.
I forgot that the cmd prompt needs to be open in my earlier post. The following should solve the problem.

1. Open an elevated cmd prompt (see post #9 in this thread)
2. Go to the drive and the directory where the file or folder is located
(as I recall folders need to be empty before they can be deleted)
3. To delete a file, type this: del filename.xxx
(don’t forget the .xxx file extension, for example; .doc)
4. Don't hit enter yet, first open task manager (cntrl+shift+esc) go to process tab than right click on “explorer.exe” choose and click on "end process now" and your desktop will be closed. Go back to the "cmd" window and hit enter.

Now the file is deleted. Go back to the task manager and click on "file" on the upper left corner then on new task then type in "explorer.exe" and you are done.
(Please note; if the file or folder name has spaces use quotes to enclose it, for example; "Program Files")

PS: In most cases “LockHunter” will work for deleting files or folders that are locked by explorer by requesting a restart which stops "explorer.exe" and removes the file during the boot process. However, there are times when this doesn't work for some unknown reason.

HTH
My System SpecsSystem Spec
11 Dec 2012   #23
Melita

Windows 7 Home Premium 64bit
 
 

Most disappointing and strange too. It didn't work either! I tried the complete procedure 3 times, with new command prompts each time I re-opened explorer.exe. Please see PNG-5 of my last attempt. I tried closing explorer.exe from the start menu ('addictive tips' method) and also from the task manager. Had the process explorer also open. Both these showed the explorer.exe closed. Got the same answer from the CMD as yesterday.

I also rechecked the the process using process explorer and there is no doubt about the process that is using the folders.

I used the RD /S /Q entry and not 'del' as you suggested in your message. Before posting this, I tried 'del' as you will see from PNG-4. The system added an asterisk to my entry and asked "whether I am sure". I did not proceed because I was concerned that the entire "Users\MELITA\My Documents\ALL OTHER\PERMNENT FILES\PERMNENT FILES\FILMS",was going to be removed!! This, I did with explorer.exe running. What could this be? This happened only when I entered 'del', instead of RD /S /Q.

To clarify matters, all the folders are empty - no files. Files are saved in another library.

Regards.


Attached Thumbnails
One folder with files, inside a number of empty folders-capture.png-5.png   One folder with files, inside a number of empty folders-capture.png-4.png  
My System SpecsSystem Spec
.

11 Dec 2012   #24
Sir George

Windows 7 Professional x64
 
 

Quote   Quote: Originally Posted by Melita View Post
Most disappointing and strange too. It didn't work either! I tried the complete procedure 3 times, with new command prompts each time I re-opened explorer.exe. Please see PNG-5 of my last attempt. I tried closing explorer.exe from the start menu ('addictive tips' method) and also from the task manager. Had the process explorer also open. Both these showed the explorer.exe closed. Got the same answer from the CMD as yesterday.

I also rechecked the the process using process explorer and there is no doubt about the process that is using the folders.

I used the RD /S /Q entry and not 'del' as you suggested in your message. Before posting this, I tried 'del' as you will see from PNG-4. The system added an asterisk to my entry and asked "whether I am sure". I did not proceed because I was concerned that the entire "Users\MELITA\My Documents\ALL OTHER\PERMNENT FILES\PERMNENT FILES\FILMS",was going to be removed!! This, I did with explorer.exe running. What could this be? This happened only when I entered 'del', instead of RD /S /Q.

To clarify matters, all the folders are empty - no files. Files are saved in another library.

Regards.
The asterisk is used to indicate wildcards or more commonly "anything". So, if I have files like; Jim.jpg, Bob.jpg, Sally.jpg, etc., then all the names preceeding the .jpg will be removed from that folder.

If the folders are empty, then delete them. Use the "del" command to do so.

HTH
My System SpecsSystem Spec
11 Dec 2012   #25
Melita

Windows 7 Home Premium 64bit
 
 

They are as stubborn as a mules. CMD prompt shows as if they were deleted but they are still there. See screen shot.


Attached Thumbnails
One folder with files, inside a number of empty folders-capture.png-6.png  
My System SpecsSystem Spec
11 Dec 2012   #26
Sir George

Windows 7 Professional x64
 
 

Quote   Quote: Originally Posted by Melita View Post
They are as stubborn as a mules. CMD prompt shows as if they were deleted but they are still there. See screen shot.
There's nothing more I can suggest, I've run out of ideas. I guess, the good news is, from what you have stated, it is only a cosmetic issue.
My System SpecsSystem Spec
12 Dec 2012   #27
Melita

Windows 7 Home Premium 64bit
 
 

The redeeming feature is that you stayed with me all this while and gave me so much of your time. I also learned much. Your help is very much appreciated.

My best regards.
My System SpecsSystem Spec
12 Dec 2012   #28
Sir George

Windows 7 Professional x64
 
 

Quote   Quote: Originally Posted by Melita View Post
The redeeming feature is that you stayed with me all this while and gave me so much of your time. I also learned much. Your help is very much appreciated.

My best regards.
Thank you.
My System SpecsSystem Spec
13 Dec 2012   #29
Melita

Windows 7 Home Premium 64bit
 
 

Hello Sir George,

A pleasant surprise. The folders got deleted. The wayward ways of Windows 7.

A few minutes ago, I was saving some web pages to My documents. On the spur of the moment, I right clicked and clicked 'delete' on the offending folder and to my amazement it disappeared, taking with it, the other three inside of it! Looked in the Recycle Bin and it is there. The files I removed from them are safe where I put them.

Since my last attempt, I did nothing to attribute this to. Only unusual thing is that I restarted the computer after some windows updates yesterday. This was the first time the computer was switched off since this exercise began. Whether this had any effect, I know not.

Best regards.

.


Attached Images
One folder with files, inside a number of empty folders-capture.png-1.png 
My System SpecsSystem Spec
13 Dec 2012   #30
Sir George

Windows 7 Professional x64
 
 

Quote   Quote: Originally Posted by Melita View Post
Hello Sir George,

A pleasant surprise. The folders got deleted. The wayward ways of Windows 7.

A few minutes ago, I was saving some web pages to My documents. On the spur of the moment, I right clicked and clicked 'delete' on the offending folder and to my amazement it disappeared, taking with it, the other three inside of it! Looked in the Recycle Bin and it is there. The files I removed from them are safe where I put them.

Since my last attempt, I did nothing to attribute this to. Only unusual thing is that I restarted the computer after some windows updates yesterday. This was the first time the computer was switched off since this exercise began. Whether this had any effect, I know not.

Best regards.

.
Good news, I am glad it finally got sorted out. I will add "restart" to the steps for future reference and see if that works to remove the entries.
My System SpecsSystem Spec
Reply

 One folder with files, inside a number of empty folders




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Folders that have files in them say that they are empty
Recently, some folders have started showing that they are empty when I try to open them. These folders opened fine a couple of days ago. When I check the properties, it shows that there are still files and when I search I can find the files and it says that they are in the proper folder. When I go...
Music, Pictures & Video
How to indicate a folder or its sub-folders are empty
I am using windows 7 professional x32 I have a layout of folder organization for my projects. This means each of my project folder have a dedicated number of folders and sub-folders such as Diagrams folder will have sub folders like network, P&ID, wiring etc. In some of my projects, some of...
General Discussion
Movie folders inside User folder.
Is it possible to change the location of folders inside of my user folder like the favorites folder or contacts folder?
General Discussion
Ungroup files and folders inside a folder(i.e subdirectory)
I want to ungroup all my files and folders present on computer with a single click or button or option to choose.Somehow, someone changed the "group by" option of my files and folders from none to group by "type" & "ascending". I want to ungroup them to none but the problem is that there are...
General Discussion
Can I create a folder template with folders inside?
Hi, I've searched for this topic but can't find it anywhere on the forum, I hope I've not missed it. Is it possible to create a template for a folder which contains three other folders inside it? I want to create a folder called 'Work' which contains three other folders called 'links',...
General Discussion
Folder has Sub-Folders and Files but shows up empty.
lol, i got no idea what's wrong with it. located in my documents/downloads I open the folder and it comes up empty. If I rename it to some other name, its contents show up actually, strange thing. Also, if I open the folder the long way, that is c\users\myuser\my documents\downloads it opens fine,...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 08:18.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App