WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

File Operations

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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
File Created: 1999:04:15:16:52:40
Last Updated: 1999:04:15:16:52:40