ATTRIB command find file no path

(imported topic written by bendernet91)

Does the ATTRIB command work in Bigfix relevance? Trying to see if a file exists (without knowing the path) and if it exists, list the path to that file.

(imported comment written by BenKus)

Can you give more details? I am not sure how attrib is related to searching for a file?

Ben

(imported comment written by bendernet91)

Searching for a file and don’t know the path.

ECHO OFF

echo Computer Name: %computername% > \server\source\test.txt

attrib /s win.ini >> \server\source\test.txt

CLS

EXIT

ATTRIB command will search the drive and give me the path as to where the file is located. Win.ini as an example.

(imported comment written by bendernet91)

I got it to work… case sensitive…

exists descendant whose (name of it = “filename”) of root folders of drive “c:”

(imported comment written by BenKus)

I would be very careful about this command… every time this relevance runs, it will look at all the files on the disk… Not only will this take a long time, but it will cause the agent and possibly the computer to be very slow…

See here for more info: http://forum.bigfix.com/viewtopic.php?id=362

Ben