English 中文(简体)
如何用XP窗户的打字标出所有分局内的所有隐藏档案?
原标题:How can i list all hidden files inside all subdirectories using batch scripting for windows XP?

<>dir /S/a> H isnt work as itiquet delve any deeper within of unhidden rafters.

http://www.un.org。 页: 1 H在非隐蔽档案或文件夹中发现任何隐藏或系统档案或文件夹,一是测试。

最佳回答

这个问题很成问题,我知道解决该问题的唯一途径是,给你一个“功能”的结果:

@echo off
setlocal ENABLEEXTENSIONS
goto main

:EnumAllFiles 
FOR /F "tokens=*" %%A IN ( dir /B /S /A:-D-H "%~1" 2^>nul ) DO call :%2 "%%~A"
FOR /F "tokens=*" %%A IN ( dir /B /S /A:-DH "%~1" 2^>nul ) DO call :%2 "%%~A"
goto :EOF

:mycallback
echo file=%~1
goto :EOF

:main
call :EnumAllFiles "c:someDirToSearch" mycallback

(由于你说你想要档案,这并不说明背书者的职能。)

Edit:它似乎喜欢dir /B /S/a-D。 著作

问题回答

暂无回答




相关问题
How Can I Check To See If the User Set His Clock Back?

In my desktop program, I want to check that to see if the user has set his clock back. To do so, I compare the timestamp of certain Operating System files to the current computer date. If any are ...

How can i add a button to all windows explorer instances?

I am trying to add a button to one of the existing tool bars in any windows explorer instance. After much research i figured out that BHO (browser helper objects) are the best way to hook to ...

Migrating to Windows 7 - How will this impact my software?

I want to migrate to Windows 7 from XP, and I have some questions: Will Oracle 10g and SQL Server 2008 work? Will my C# programming (in Visual Studio 2003, 2005 and 2008) work? Do I need to do ...

Log my battery performance on netbook [closed]

Which Windows API (Windows Xp and Window 7) do I use to log my battery performance on netbook? I want to write an app which can graph the watt vs time. I always run a select few apps on the netbook. ...

PHP on IIS 5.1 is not working

I know this has been asked a few times here. But none of the suggestions or answers related to PHP on IIS have helped. I have tried installing PHP ON IIS 5.1 (XP SP 3) on two computers and it still ...

WPF Memory Leak on XP (CMilChannel, HWND)

My WPF application leaks memory at about 4kb/s. The memory usage in Task Manager climbs constantly until the application crashes with an "Out of Memory" exception. By doing my own research I have ...

热门标签