Solved Delete Folder Content Software

chuckhig

New member
Power User
VIP
Local time
4:14 PM
Messages
186
Location
Adirondack Mountains..upstate New York
Looking to delete content of a folder but want to keep the folder. I have to do this often for a flight simulator program. I cannot simply overwrite to files in to folder. So, I just would just like to do something like right click and empty the folder content but keep the folder. I googled and see how to go into my registry ,but wish not to do it that way. Is there software. Thanks..as usual.
 

My Computer

OS
Windows 7 Home Premium 64 bit
You could likely write a batch file to do that.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Home Built
OS
Windows 10 Education 64 bit
CPU
AMD Phenom II X4 980 Black Edition Deneb 3.7GHz
Motherboard
Asus M4N68T-M V2 µATX Motherboard
Memory
8GB 4GBx2 Kingston PC10600 DDR3 1333 Memory
Graphics Card(s)
Zotac NVIDIA Geforce GT640 2 Gig DDR3 PCIe
Sound Card
VIA VT1708s High Definition Audio 8-channel Onboard
Monitor(s) Displays
22" LG E2242 1080p and 2 19" I-INC AG191D
Screen Resolution
1280x1024 - 1920x1080 - 1280x1024
Hard Drives
Crucial M100 256 GB SSD and 500 GB WD Blue SATA
PSU
Thermaltake TR 620
Case
Power Up Black ATX Mid-Tower Case
Cooling
Stock heatsink and fan
Keyboard
Logitech Wireless K350 Wave
Mouse
Logitech Wireless M570 Trackman Wheel
Internet Speed
80 Mbps Down 30 Mbps Up
Antivirus
Windows Defender
Browser
Internet Explorer 11
Other Info
HP DVD1040e Lightscribe - External USB2
...I have to do this often for a flight simulator program...

You could likely write a batch file to do that.

alphanumeric,
Yep, batch file is probably the way to go.

chuckhig,
Can you tell us what you do next after the folder is empty? We can probably help you create the batch file if you tell us the folder involved and what happens next after the folder is empty. (e.g. do you copy new files from somewhere?)
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
I just found an answer. I now have an option when I right click I have an option to empty folder content. It was added to my registry. When the folder in question is empty,I then add ie. new scenery colors or textures . Another example is often a developer provides another color or texture to replace the one I have,so I delete the folder content and add the new one. Hope I am making sense. You can see this by going to x plane forums . This is all related to flight simulation. See under scenery for example how new textures,etc are added. Thanks for your help. The only thing I don't like is that you better not make a mistake or it is gone forever. It doesn't go to the recycle bin. It just goes. Say I wanted to remove option this from my registry..how would I do that Thanks. Chuck
 

My Computer

OS
Windows 7 Home Premium 64 bit
Why all this trouble. What's wrong with just highlighting all the files in the folder and then delete them all together in 1 swing. Open the folder and press CTL+A to highlight all files.
 

My Computer

Computer Manufacturer/Model Number
HP, Dell, Gateway, Toshiba - 4 laptops and 2 desktops
OS
Vista, Windows7, Mint Mate, Zorin, Windows 8
CPU
from 1.6GHz Duo to i7
Monitor(s) Displays
2x HP w2207
Hard Drives
5x HDD, 7x SSD, 12x Externals
Keyboard
with trackball - no mices
Mouse
Trackball mice
Internet Speed
DSL 6000
I just found an answer. I now have an option when I right click I have an option to empty folder content. It was added to my registry. When the folder in question is empty,I then add ie. new scenery colors or textures . Another example is often a developer provides another color or texture to replace the one I have,so I delete the folder content and add the new one. Hope I am making sense. You can see this by going to x plane forums . This is all related to flight simulation. See under scenery for example how new textures,etc are added. Thanks for your help. The only thing I don't like is that you better not make a mistake or it is gone forever. It doesn't go to the recycle bin. It just goes. Say I wanted to remove option this from my registry..how would I do that Thanks. Chuck
Did the flight sim software add this "empty directory" to your registry? If not, then how did it get there? Knowing how it got there helps us know how to help you get it out of there.

Here is how I would go what you are doing:
put the files to be added into a "from folder"
copy a batch file (that we will write) to that "from folder"
run that batch file


You can keep as many "from folders" as you have room for. You can switch back to any old one by double clicking on the batch file in the old "from folder" of interest.

If this sounds like something that you would like to try, the tell me the name of the folder that these files go into.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Add Empty Folder Contents to Windows Right Click Context Menu This is where I got it. I like your option better. Can I delete this registry entry?
Manually create a restore point and then edit the registry as desired.

If you do not feel comfortable editing the registry manually, I might be able to create a reg file that you can merge to undo what the other reg file added. However, I'm on a computer that cannot open RAR files. So, I would need you to right click on the reg file that you used to add the info to your registry and send that file to a Compressed (zipped) folder. Then upload that zipped file to your next post.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
Add Empty Folder Contents to Windows Right Click Context Menu This is where I got it. I like your option better. Can I delete this registry entry?
Manually create a restore point and then edit the registry as desired.

If you do not feel comfortable editing the registry manually, I might be able to create a reg file that you can merge to undo what the other reg file added. However, I'm on a computer that cannot open RAR files. So, I would need you to right click on the reg file that you used to add the info to your registry and send that file to a Compressed (zipped) folder. Then upload that zipped file to your next post.

Here you go,
 

Attachments

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self Built
OS
Win 10 Pro x64
CPU
Intel I5-2500K @3.3GHz
Motherboard
Asrock P67 Extreme4
Memory
16GB G.Skill Ripjaws X (4x4GB)
Graphics Card(s)
EVGA GeForce 750 Ti SC 2GB
Sound Card
ASUS Xonar DG 5.1 Channels 24-bit 96KHz PCI Interface Sound
Monitor(s) Displays
auria eq2367
Screen Resolution
1920 x 1080
Hard Drives
250GB Samsung 850 EVO SSD
1TB WD Blue
1TB Hitachi
PSU
SeaSonic X 650W 80 Plus Gold
Case
Corsair Obsidian 750D
Cooling
Corsair H60, Three 140mm case fans
Keyboard
Logitech Wireless Keyboard K520
Mouse
Logitech Wireless Mouse M310
Internet Speed
Wave Broadband ~ 100 dn 5 up
Antivirus
Windows Defender, Malwarebytes Premium
Browser
Edge, IE11, Chrome
Other Info
Laptop specs: HP g7-1365dx /
CPU: AMD A6-3420M APU with Radeon(tm) HD Graphics /
RAM: Crucial 8Gb (2x4Gb) /
SSD: Crucial M4-CT128M4SSD2 ATA Device/ FW 000F /
GFX: AMD Radeon HD 6520G /
OS: Windows 10 Pro x64
Chuck,

If you like, I'm fixing to post a new tutorial for this that will ask "Are you sure?" when you click on "Delete Folder Contents" in a folder's context menu to make this safer and easier.

I'll post back with a link to it when it's finished later. :)
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Add Empty Folder Contents to Windows Right Click Context Menu This is where I got it. I like your option better. Can I delete this registry entry?
Manually create a restore point and then edit the registry as desired.

If you do not feel comfortable editing the registry manually, I might be able to create a reg file that you can merge to undo what the other reg file added. However, I'm on a computer that cannot open RAR files. So, I would need you to right click on the reg file that you used to add the info to your registry and send that file to a Compressed (zipped) folder. Then upload that zipped file to your next post.

Here you go,
Thanks for the assist.

chuckhig,
Try the reg file that I've attached to this post.
 

Attachments

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
Chuck,

If you like, I'm fixing to post a new tutorial for this that will ask "Are you sure?" when you click on "Delete Folder Contents" in a folder's context menu to make this safer and easier.

I'll post back with a link to it when it's finished later. :)
You can fix the delete commands while you are at it :-)
They did not delete hidden/system files during my testing :-(

The OP would probably be better off to have a stash of these source folders and a batch file that pushes them into the destination folder when executed.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
Chuck,

If you like, I'm fixing to post a new tutorial for this that will ask "Are you sure?" when you click on "Delete Folder Contents" in a folder's context menu to make this safer and easier.

I'll post back with a link to it when it's finished later. :)
You can fix the delete commands while you are at it :-)
They did not delete hidden/system files during my testing :-(

No problem. It'll delete everything in the folder as long as the user has access rights to the folder.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Oh - I should have specified:
I was talking about the reg file that the OP liked to.
It failed to delete all files.
I've not tested the one from your tut.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
Tut not finished yet. I'm still playing with it. :)

Do you think it's best to have it only delete all files in a specific folder, and not delete any subfolders and files in the subfolders?

EDIT:
I'll have two options.

1) Delete Files in Folder = Deletes only the files in a folder, and will not delete any subfolders or files in subfolders.

2) Empty Folder = Deletes and recreates the folder leaving the folder completely empty.
 
Last edited:

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Chuck Registry

Guess I'm not too smart. Cannot figure out how to continue. I will wait until tomorrow because I have to go out now. I have no choice. I am not too good with this computer stuff. I am 71 years old . I try,but not too good. I really need detailed instructions. I really appreciate your time and effort. Sorry I cannot do you justice. I will try to sort this out tomorrow. I am really confused now. Probably because I am overwhelmed by all this technical stuff. Really..thanks for your patience. I hope I can figure this out tomorrow. I really appreciate your help. Thanks Chuck
 

My Computer

OS
Windows 7 Home Premium 64 bit
No worries Chuck.

To remove the context menu from the site you posted about, you could do this below. :)
  • Download .reg file below created by UserNameIssues above to your desktop.
  • Double click on .reg file to merge it.
  • If prompted, click on Run, Yes, Yes, and OK to approve the merge.
 

Attachments

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Back
Top