I have a hidden file in my desktop that I recently switch to attrib +h in command prompt but don't know the name of the file. So I want to use the command prompt and change all files within the desktop to attrib -h. is it possible to do this to all files at the same time?
|
feedback
|
migrated from stackoverflow.com Oct 20 '11 at 23:40
This question came from our site for professional and enthusiast programmers.
|
You didn't specify which OS you're using, but good guesses would be DOS, or any Windows system using the command prompt. (Linux has a sort of similar command, but it operates on different attributes, and linux hides files in a different manner anyways) (Ah, 'desktop' ... so Windows using command prompt...) you could just type 'attrib *.*' and it'll display the attributes of ALL the files in the subdirectory, look for the one with H...
You'd probably want to pipe the output through 'more' to see it page by page:
OR
and its paged version:
which shows ALL the files in a subdir, hidden, system, read-only and archive... shows them all, regardless of the attribute flags. Look for the one you don't see with a typical 'dir' command Once you find the naughty file, then use the attrib -h command to reset the hidden flag:
But if you're dead set on touching all the files, then
would remove the hidden attribute on all files in the subdirectory. Not recommended since it could unhide files you shouldn't be playing with. | |||||||
feedback
|