![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-09 12:55 |
47,811 topics / 349,895 posts / today 0 new / 48,254 members |
| DOS批处理 & 脚本技术(批处理室) » Set subdirectories under the root directory and remove the hidden attribute |
| Printable Version 719 / 1 |
| Floor1 dato | Posted 2008-08-24 11:54 |
| 高级用户 Posts 377 Credits 916 | |
|
Need a script to traverse the subdirectories under the current root directory, without going into deeper directories, and use attrib -h to remove the hidden attribute.
Mainly because USB flash drive viruses always set the subdirectories under the root of the USB drive as hidden, so I need a script like this to quickly reset them. ----------------------- Damn, I didn't look carefully at the dir parameters, so I couldn't get any result all along. This line works now, Mm, thanks to HAT for the reminder. It should work now. It's been so long, I hardly know how to use for anymore, hehe [ Last edited by dato on 2008-8-24 at 12:18 PM ] |
|
| Floor2 HAT | Posted 2008-08-24 12:13 |
| 版主 Posts 5,017 Credits 9,023 | |
|
You didn't consider directories with spaces in their names, did you?
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |