Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 10 of 10
  1. #1
    Join Date
    Oct 2002
    Posts
    4

    Grin 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. #2
    Join Date
    Jun 2002
    Location
    Southeast USA
    Posts
    1,804

    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

  3. #3
    Join Date
    May 2001
    Location
    51.531249 | -0.610962
    Posts
    1,244

    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]

  4. #4
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959

    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

  5. #5
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959

    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!!

  6. #6
    Join Date
    May 2001
    Location
    51.531249 | -0.610962
    Posts
    1,244

    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]

  7. #7
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959

    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.

  8. #8
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746

    Re: APMS 'File Location' Checking...

    Worm for president.

    Corey Milner
    Creative Director, Indigo Rose Software

  9. #9
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959

    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.

  10. #10
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts