Announcement

Collapse
No announcement yet.

APMS 'File Location' Checking...

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

  • APMS 'File Location' Checking...

    For security / copying reasons, I would like my APMS project to check where it's running from ( for example, a CD-ROM drive ), so that if it's not running from that location the end-user will be treated to a rude message.

    Does anyone know how to do this ???

    Many thanks in advance !!!

  • #2
    Re: APMS 'File Location' Checking...

    I am sure there's a way to do this (I don't know), but I'm curious as to why you'd want to? Most people who would steal by copying would make a copy to the same media type - not to the hard drive. Therefore, they wouldn't get a rude message anyway.
    Eric Darling
    eThree Media
    http://www.ethreemedia.com

    Comment


    • #3
      Re: APMS 'File Location' Checking...

      There isn't a 'DriveType' in AMS, so as soon as I read this I figured you would give us a dll to work with, Worm.
      Thanks so much [img]/ubbthreads/images/icons/smile.gif[/img]

      [lol ... even tho you moved it down the list below this post!]
      -
      = Derek
      ["All glory comes from daring to begin" - fortune cookie]

      Comment


      • #4
        Re: APMS 'File Location' Checking...

        This sample will distinguish between a removable disk, fixed disk, network/remote disk, cd-rom disk, or RAM disk.

        It uses the GetDriveTypeA function from the Kernel32.dll

        Best of luck

        14560-DriveType.zip

        Comment


        • #5
          Re: APMS 'File Location' Checking...

          I noticed that I left some of my debug code in the script. If you downloaded the original, the %DRIVE% variable was set to a drive letter, not pulled from the %SrcDrv%.

          I hoped I'd deleted it before anyone had a chance to read it.

          You're mighty Quick!!

          Comment


          • #6
            Re: APMS 'File Location' Checking...

            "You're mighty Quick!!"

            Quicker than the eye ... I got a copy of the fist attachment too!
            Does it make a difference to the results?
            -
            = Derek
            ["All glory comes from daring to begin" - fortune cookie]

            Comment


            • #7
              Re: APMS 'File Location' Checking...

              Yes and no, in the first one I had the variable %Drive% set to "N:\" so it was always going to check to see what type of drive the N: drive was. In the one that's posted, it will check the drive that the AMS4 app is ran from.

              Comment


              • #8
                Re: APMS 'File Location' Checking...

                Worm for president.

                Corey Milner
                Creative Director, Indigo Rose Software

                Comment


                • #9
                  Re: APMS 'File Location' Checking...

                  I guess I would be a typical president. Using the wrong tools most of the time.

                  I've been using AMS much more recently and found that there is an Action built right into AMS that does the same thing.

                  In the actions, Under System, choose Drive Information, change the property to Type and you'll get the same results.

                  Too easy I guess.

                  Comment


                  • #10
                    Re: APMS 'File Location' Checking...

                    Oh I see, oops, I could have told you that... [img]/ubbthreads/images/icons/smile.gif[/img] I misunderstood the question, good ol' Worm... I must start reading these things more closely. [img]/ubbthreads/images/icons/smile.gif[/img]

                    Corey Milner
                    Creative Director, Indigo Rose Software

                    Comment

                    Working...
                    X