Linked Questions
27 questions linked to/from How to delete files/subfolders in a specific directory at the command prompt in Windows
1 vote
0 answers
10k views
DELTREE command windows 10 replacement [duplicate]
Im having an issue replacing DELTree command I wrote a small batch file like 12 years ago or something for windows xp and ME and I want to use it on windows 10 to clear TEMP files and PREFETCH and ...
0 votes
1 answer
2k views
Script to delete files and subfolders [duplicate]
I have a batch script that goes and deletes all files and folders within the "Temp" folder of each users profile, without deleting the main directory. The script will delete the files just fine but ...
-3 votes
1 answer
2k views
Deleting subfolder and files in window through cmd and timestamp backup [duplicate]
I want to delete files and folders from a folder by using cmd in windows.How can i do? And i need to copy a file and paste appending timestamp by time. Help will be appreciated Thanks!
0 votes
1 answer
3k views
How to remove files starting with dot (.) from a directory? [duplicate]
I have a list of files and folders inside a directory. For example, .jazz or .project file after a checkout. I am using batch script currently, May I know how to remove .jazz or .project files from my ...
0 votes
1 answer
553 views
How to delete every subdirectory and files from Windows CLI with a single line of command? [duplicate]
I know, there are very similar questions to this, but I couldn't find the correct answer to this one. My folder structure looks like this: \Path\To\BaseDir \FolderToDelete1 \File1 ...
0 votes
1 answer
245 views
Batch file to clean one folder [duplicate]
I have a folder on my drive, which I regulary clean. It has only txt files with sql logs. How can I write batch script which is going to clean it when I run it ? What I mean is, I do not want to go to ...
175 votes
19 answers
567k views
Delete all files and folders in a directory
I want to have a batch file that will delete all the folders and files in my cache folder for my wireless toolkit. Currently I have the following: cd "C:\Users\tbrollo\j2mewtk\2.5.2\appdb\RMS" del *....
111 votes
12 answers
478k views
How to delete all files and folders in a folder by cmd call
I use Windows. I want to delete all files and folders in a folder by system call. I may call like that: >rd /s /q c:\destination >md c:\destination Do you know an easier way?
100 votes
14 answers
374k views
how to empty recyclebin through command prompt?
Usually we delete the recycle bin contents by right-clicking it with the mouse and selecting "Empty Recycle Bin". But I have a requirement where I need to delete the recycle bin contents using the ...
88 votes
11 answers
94k views
What ever happened to deltree, and what's its replacement? [closed]
In earlier versions of MS-DOS - I want to say version 7, but I could be wrong - there was a deltree command, which recursively deleted all subdirectories and files from a given path. deltree no ...
74 votes
10 answers
88k views
Visual Studio 2015 crashes
Visual studio that won't be repaired... Everytime I want to compile an app on vs 2015 - it crashes. Even if I want to compile the main function or write somthing to it, there appears a window, which ...
32 votes
4 answers
44k views
How to delete all file and folders with msbuild
How can I delete all files and folders from a given path? I tried this, but I'm unable to select the directories. <Target Name="CleanSource" Condition="$(path)!=''"> <Message Text="...
23 votes
1 answer
37k views
Single line with multiple commands using Windows batch file
I try to understand how multiple commands in a single command line in a batch file work. dir & md folder1 & rename folder1 mainfolder And other case with similar commands, but & ...
5 votes
5 answers
27k views
How to delete Node_modules folder in command line on Windows?
So, I should delete all node_modules in my project(I want that the node_modules folder become completely empty). Just removing folder manually does not suit me. I read that I can delete it with rm -...
2 votes
2 answers
22k views
How to fix the error "The filename, directory name, or volume label syntax is incorrect." while running my bat file?
I was trying to delete C:\Users\%USERPROFILE%\AppData\Local\Temp and it shows the error: The filename, directory name, or volume label syntax is incorrect. This is the code: @Echo off del /s /q &...