English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I can not use the control panel or explorer to get to folder options but I can make a batch file to open a command prompt, can I switch to show hidden folders from a command prompt without using attrib/-h

2007-03-29 12:34:10 · 3 answers · asked by Bill K 3 in Computers & Internet Programming & Design

3 answers

A few notes for you,

1) to see hidden FOLDERS and FILES

dir /ah

2) If you want to see JUST hidden FOLDERS,

dir /ahd

3) If you want to see ALL files and folders INCLUDING hidden ones,

dir /a

Finally, you can modify the default behavior of 'DIR' by using the DIRCMD environment variable. You can set the default switches that you want to use either in your config.sys file (for older versions of Windows) or at the top of your batch file.

set DIRCMD= <>

for the three examples above, the line would look like
set DIRCMD=/ah
set DIRCMD=/ahd
or,
set DIRCMD=/a

then, when you do a simple "dir" it automatically displays the files and/or directories using the switches you have included.

2007-03-31 00:55:33 · answer #1 · answered by Kevin 7 · 4 0

Just to clarify the above response, there should not be a space between the A and H. The command should be "dir /ah" to show hidden files and directories.

2007-03-30 04:59:57 · answer #2 · answered by Dr.Mr.Ed 5 · 0 0

/A - Displays files with specified attributes.
D Directories R Read-only files
H Hidden files A Files ready for archiving

dir /A H

2007-03-29 13:06:23 · answer #3 · answered by Anonymous · 0 0

fedest.com, questions and answers