Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


How to Get a List of Hidden Files in a Directory

Keywords:  fileattrset archive bits hidden files  

Question:

I need to change some files' attributes but the problem is that I don't know the full name of the files to process (c:\windows\*.grp).

I tried to issue: FileAttrSet("c:\windows\*.grp","rash") but that didn't do the trick, because since the files were hidden, they weren't included in the "c:\windows\*.grp" list, and their attributes weren't changed. I know FileAttrSet does work when I use the hidhen files' FULL NAMES, but I can't do that...

So, my question is:
-How can I get a list of hidden files in a specific directory?

Answer:

Try adding:
	IntControl(5,1,0,0,0) 
to the top of your script.

It allows hidden files to be "seen"


Article ID:   W13236
Filename:   Get a List of Hidden Files in a Directory.txt