Delete a hidden file in MS DOS

arauchy -  
 satirex -
comment supprimer un fichier caché en DOS?

6 réponses

muntoya Posted messages 396 Status Contributeur 72
 
Good evening,

I suppose you're testing the deletion of a hidden file in DOS =

you need to start by accessing the file via its path
ex C:\>cd %userprofile%\......

List with the command dir "only the hidden files"

dir /ah filetosuppress //parameter /a + attributes h for hidden

then del /ah filetosuppress //parameter /a + attributes h to delete the hidden file

Note: To list hidden files, you can also use the command dir /a-d which lists all files only.

There you go @+

Muntoya
8
satirex
 
Thank you, it's very well explained, well done.
0
Jango78
 
Good evening,

Maybe you need to disable the hidden file attribute first (?)...

In that case, the command is Attrib -h

J78.
3
toptitbal Posted messages 5341 Registration date   Status Contributeur sécurité Last intervention   2 232
 
Hello
attrib +h filename
1
badr94
 
Hello,
how to hide files using MS-DOS? and thanks@+
0
Paul
 
Hello,
https://www.commentcamarche.net/contents/248-introduction-au-systeme-d-exploitation-ms-dos
0
Paul
 
Hello,
https://www.commentcamarche.net/contents/245-operating-systems-dos-commands
0