Announcement

Collapse
No announcement yet.

Looking for a directory

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Looking for a directory

    Hi,

    is there a way to check wether a certain directory exists?

  • #2
    Re: Looking for a directory

    No, there is no way to check for the existance of a directory, only a file. If there is a file that you know will always exist inside of that directory, you could search for that and then parse up that string for the path of the parent directory.

    Hope that helps.

    Comment


    • #3
      Re: Looking for a directory

      Setup Factory is able to check for the existence of a directory. Just enter the directory name as "file name":
      Read File Information (%MyDirExist% = Existence of D:\MyDir)
      I have used this syntax for years. It works with Win98/NT/2000/XP.

      Comment


      • #4
        Re: Looking for a directory

        Yes, I'm sorry, csd214 you are correct. I must have been thinking about searching for a particular directory, in which case that will not work. However if you know the exact location, csd214's reply will do it. Thanks for setting me straight.

        Comment

        Working...
        X