Announcement

Collapse
No announcement yet.

APMS 'File Location' Checking...

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

  • Corey
    replied
    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

    Leave a comment:


  • Worm
    replied
    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.

    Leave a comment:


  • Corey
    replied
    Re: APMS 'File Location' Checking...

    Worm for president.

    Corey Milner
    Creative Director, Indigo Rose Software

    Leave a comment:


  • Worm
    replied
    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.

    Leave a comment:


  • Derek
    replied
    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?

    Leave a comment:


  • Worm
    replied
    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!!

    Leave a comment:


  • Worm
    replied
    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

    Leave a comment:


  • Derek
    replied
    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!]

    Leave a comment:


  • eric_darling
    replied
    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.

    Leave a comment:


  • ltatkinson
    started a topic APMS 'File Location' Checking...

    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 !!!
Working...
X