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: Batch File to remove unwanted folder

18 Aug 2016   #1
FrustratedJP

Windows 7 Ultimate 64Bit
 
 
Batch File to remove unwanted folder

Is there any way to remove all folders from one folder via a batch file?

I've searched for an answer and nothing will work.


Any help would be greatly appreciated. Thank you.


My System SpecsSystem Spec
.
18 Aug 2016   #2
samuria

win 8 32 bit
 
 

Welcome to the forum have you just tried rmdir folder /s or deltree c:\ folder
My System SpecsSystem Spec
18 Aug 2016   #3
FrustratedJP

Windows 7 Ultimate 64Bit
 
 

Neither of your suggestions worked..
My System SpecsSystem Spec
.

18 Aug 2016   #4
mitchell65

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

Not sure what ou are trying to do! When you say remove do you want to delete the sub folders or perhaps move them to another location?
My System SpecsSystem Spec
18 Aug 2016   #5
FrustratedJP

Windows 7 Ultimate 64Bit
 
 

I've downloaded a file, filebot takes that file, renames it then places it in E:\Organized Media. The initial file is saved under E:\Completed, this is the folder & file I would like to delete.

Example: Folder name (X-files bla bla bla) Open folder (X-filesS1E45bla.mkv)
I want to delete both from E:\Completed but every batch file I have found and tried does not work.
My System SpecsSystem Spec
18 Aug 2016   #6
FrustratedJP

Windows 7 Ultimate 64Bit
 
 

Quote   Quote: Originally Posted by mitchell65 View Post
Not sure what ou are trying to do! When you say remove do you want to delete the sub folders or perhaps move them to another location?
Yes, I want to delete all sub folders with E:/Completed.

Every batch file I have found and tried does not work.
My System SpecsSystem Spec
18 Aug 2016   #7
samuria

win 8 32 bit
 
 

Unless you don't have rights on the folders the cmds I gave you should work
My System SpecsSystem Spec
18 Aug 2016   #8
FrustratedJP

Windows 7 Ultimate 64Bit
 
 

Quote   Quote: Originally Posted by samuria View Post
Unless you don't have rights on the folders the cmds I gave you should work
Neither works.
My System SpecsSystem Spec
18 Aug 2016   #9
Eric3742

Windows 7 x64
 
 

Quote   Quote: Originally Posted by FrustratedJP View Post
I've downloaded a file, filebot takes that file, renames it then places it in E:\Organized Media. The initial file is saved under E:\Completed, this is the folder & file I would like to delete.

Example: Folder name (X-files bla bla bla) Open folder (X-filesS1E45bla.mkv)
I want to delete both from E:\Completed but every batch file I have found and tried does not work.

If the downloaded file create a link /shortcut to another folder, you may not be able to delete.
It will always re-created the same folder E:\Completed if the folder is not found.
That is to say, this E:\Completed will be create on the same root level.

If you look at your 1st statement, E:\Organized Media
And hence it will also created a folder E:\Completed.
Both folders are on the same level E:\
You may have to re-check all the setting of this program as where it will saved to.

For example: Chrome browser.
When on the website, you want to save any webpage /txt files, it auto save to C:\Download
If the C:\Download is not available, it will create the folder C:\Download
If you choose to save the txt file to another location, you input the location folder.
When you exit Chrome browser, and later open the Chrome browser.
Again if you download any txt file, example, it will save to C:\Download and if not available, it will create again.
As you can create another folder for downloading of txt file and must amend the Chrome setting for download to a new C:\NEWfolder

So, you need to check all the setting that will point to this folder E:\Completed.

Normally this will be the temporary folder until completed then move &or copy to the folder.
This is also same for downloading video.
It will create a temp filename while downloading, and will renamed to the original name and the temp filename is thus deleted.

Do note that during downloading &or installing program, the temp file will be in C:\Windows\Temp or C:\Users\your-acct-name\...\Temp folder.
If you know how to access to your temp files at; C:\Users\your-acct-name\AppData\Local\Temp
This is where all temp files are located.
My System SpecsSystem Spec
18 Aug 2016   #10
chuckhig

Windows 7 Home Premium 64 bit
 
 

Delete Stubborn File see if this is any help.
My System SpecsSystem Spec
Reply

 Batch File to remove unwanted folder




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Add batch file to the Start folder? (hide Safely Remove Hardware icon)
I have finally found a way to get rid of the annoying Safely Remove Hardware icon in the Task Tray that consistently works on my little computer. It is this batch file: https://www.raymond.cc/blog/download/did/581/ from:...
General Discussion
.bat batch move file to folder based on filename + remove string
I have a folder with thousands of filenames like this. I need to put them inside folders and remove the useless parts from the filenames. I need to do this before adding the files inside my XBMC library. www.AnnoyingSpam.com ] Some.File.Name.With.A.Very.Long.String.avi ...
General Discussion
I need a batch file to open a random file within a certain folder/path
I want a batch to select and open a random link file in a folder i have. All the links are music videos I like to listen to, and I kind of want to just have an option for 'surprise me!'. I can change the file names if I have to, and I have a basic batch file ability. I know the simple commands,...
General Discussion
Batch File that grabs file names from folder to insert into batch file
Ok I'm totally at a loss on how to word this so I'm just going to write it out the best that I can... :confused: First I have a batch file that I'm writing that will convert mp4 files to mp3 files (I have a lot) for a buddies band using ffmpeg. Here's the code that I'm using: ffmpeg -i...
General Discussion
batch file open file for program in the startup folder
I have a computer that is a drone specifically for an outside LED sign. This computer is designed to never shut off and doesn't have any other program on it besides Operating System and the sign software. I need to create a batch file that I can place in the "start-up" folder that will open the...
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 21:23.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App