Skip to main content

All Questions

Tagged with
3 votes
1 answer
9k views

rmdir favorites Access is Denied

Command prompt: CD C:\Users\Example\ rmdir favorites Access is denied. How do I delete the Favorites folder via the command prompt? Yes, I want to do this. Yes, I know this folder is for Internet ...
John's user avatar
  • 2,147
2 votes
1 answer
17k views

Batch File, dir | findstr within a for loop

Let me preface by admitting that I am a complete noob at batch files... and programming language in general. I am trying to write a batch file that allows the user to input a partial filename, and it ...
Gumbi's user avatar
  • 23
3 votes
1 answer
9k views

How to not show file path with dir /b /s command in batch file

Is there Any way I can bypass displaying file paths when using the dir /b /s command into a file? Currently, when I run dir /b /s C:\WinPE_amd64 >dir.txt it outputs something like this: C:\...
Mark Deven's user avatar
  • 1,660
10 votes
1 answer
12k views

Is it possible to pipe a list of files to RMDIR on Windows?

I am writing a batch file for the Windows command prompt to delete all directories matching a certain expression. I am first using DIR to return a plain list of directories matching the expression. I ...
user78755's user avatar
  • 103