Is it at all possible to use only a single UTF-8 BAT file and be able to find e.g.
P:\Excel file deletion test\hidden and read only\~$test file for potential deletion.xlsm
and delete it successfully?
I have no problem with doing this using a PS1 file, but I would like to do it using only Batch
Deleting hidden and read-only files with pure Batch [SOLVED]
Moderator: DosItHelp
Deleting hidden and read-only files with pure Batch [SOLVED]
Last edited by DOSadnie on 05 Jul 2025 08:41, edited 1 time in total.
Re: Deleting hidden and read-only files with pure Batch
You mean someting like this?
Steffen
Code: Select all
del /f /a "D:\somewhere\whatever file.ext"
Re: Deleting hidden and read-only files with pure Batch
Yes, thank you
I had to make sure I can go to basics for test purposes, because some of my more elaborate code somehow stopped working [viewtopic.php?f=3&t=12104&p=71384#p71384]. I think I need to take a break because its all getting mixed up in my head
I had to make sure I can go to basics for test purposes, because some of my more elaborate code somehow stopped working [viewtopic.php?f=3&t=12104&p=71384#p71384]. I think I need to take a break because its all getting mixed up in my head