Analyses - Look for file or folder on hard drive

(imported topic written by RobertDiRosato)

Can someone show me the syntax for writing the below 2 separate relevance analyse statements?

  1. If Folder (c:\windows\rob) exists then “true” else “false”

  2. If File (c:\windows\rob\test.ini) exists then “true” else “false”

(imported comment written by NoahSalzman)

q: exists folder “c:”

A: True

q: exists file “c:\foo.txt”

A: False

You should probably check out this documentation:

http://publib.boulder.ibm.com/infocenter/tivihelp/v26r1/topic/com.ibm.tem.doc_8.2/Platform/Console/c_fixlets_and_tasks.html

(imported comment written by NoahSalzman)

Actually, a better place to start would be here:

https://www.ibm.com/developerworks/mydeveloperworks/wikis/home?lang=en#/wiki/Tivoli%20Endpoint%20Manager/page/Fixlet%20Authoring

(imported comment written by RobertDiRosato)

Thanks Noah… You know I love Q & A Format… just Kidding…

Thanks yet again for your help

(imported comment written by NoahSalzman)

LOL!

Just making sure you get quick answers by copying and pasting directly from the Q/A debugger. :slight_smile:

(imported comment written by RobertDiRosato)

I figured it out…

File

if exists (File “c:/test/doc.txt”) then “Yes” else “No”

Folder

if exists (Folder “c:/test”) then “Yes” else “No”