Announcement

Collapse
No announcement yet.

TRUE if Exist Directory

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

  • TRUE if Exist Directory

    How would you go about setting a variable to check if a FOLDER exists,(not file)

    Return TRUE if exists??

  • #2
    Re: TRUE if Exist Directory

    Although there is no main way it's super easy to just check for a file in that folder. [img]/ubbthreads/images/icons/smile.gif[/img] So for example check for c:\windows\desktop\myfolder\myfolder.txt or whatever, if it doesn't exist then neither does the folder... Just one workaround...

    Corey Milner
    Creative Director, Indigo Rose Software

    Comment


    • #3
      Re: TRUE if Exist Directory

      thats what I'm using now as a workaround, I figured there would have been a better way, What would the code to "GetInformation.File = TRUE if Exists" look like? could I expand off that somehow? or like always....wait for Worm to do it?

      Comment


      • #4
        Re: TRUE if Exist Directory

        Not sure what you're talking about...

        Corey Milner
        Creative Director, Indigo Rose Software

        Comment


        • #5
          Re: TRUE if Exist Directory

          .File\GetInformation\Action Properties\Existence("TRUE" if file exists)
          If I used this action to check for a file, could this action not be modified for Folder instead?

          Comment


          • #6
            Re: TRUE if Exist Directory

            No idea...

            Corey Milner
            Creative Director, Indigo Rose Software

            Comment


            • #7
              Re: TRUE if Exist Directory

              I've come across this myself. I ended up writing a DLL to take care of it.

              Pick it up here

              Comment


              • #8
                Re: TRUE if Exist Directory

                Cool .dll Worm. It would be nice to have a bunch more folder functions no doubt, i.e. find, rename, move, copy, etc...

                Corey Milner
                Creative Director, Indigo Rose Software

                Comment


                • #9
                  Re: TRUE if Exist Directory

                  Worm does it again!!! , I'll incorporate this dll into some test projects...get the feel for it, but it looks good so far.
                  Where would I also find the functions for the "GetFolders.dll"

                  Comment


                  • #10
                    Re: TRUE if Exist Directory

                    All I needed was to know if a folder existed, so thats all I wrote. If you have some ideas, pass them on and I'll see what I can come up with. No promises though, I'm still fairly new to C++ and its a complex language[img]/ubbthreads/images/icons/crazy.gif[/img]

                    Comment


                    • #11
                      Re: TRUE if Exist Directory

                      No I didn't mean from you, I meant in AMS 5. Although... [img]/ubbthreads/images/icons/smile.gif[/img]

                      C++ is awesome, way too boring for someone like me but awesome for sure. I'm sure your brain gets used to it after a while. [img]/ubbthreads/images/icons/smile.gif[/img]

                      Corey Milner
                      Creative Director, Indigo Rose Software

                      Comment


                      • #12
                        Re: TRUE if Exist Directory

                        BTW Worm I'd just like to give you a massive thank you from the entire IR team for the coolness you share. Your efforts are always noticed and never taken for granted.

                        Corey Milner
                        Creative Director, Indigo Rose Software

                        Comment


                        • #13
                          Re: TRUE if Exist Directory

                          Thanks for the nod Corey, I appreciate it.

                          Comment

                          Working...
                          X