Announcement

Collapse
No announcement yet.

variables and/or passwords

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • variables and/or passwords

    I have been looking for a way to capture a (the) password variable and pass this on as a command line option for the open document action. I have a password protected MS Access file that I would like AutoPlay to be able to open. Can you help me?

    -joro

  • #2
    Re: variables and/or passwords

    You would probably want to check with MS to see if it's possible to send the password as a command line argument. I know you can add arguments from within AMS, but you need to see if Access will accept the password as an argument first. Otherwise, sending it would be pointless.

    Comment


    • #3
      Re: variables and/or passwords

      Thanks for your reply jito. The question stands however as there are programs that I will be able to send the password variable to as an argument. I may use such a program to encrypt the files on my cd.

      The real problem is that the password variable is not documented anywhere.

      The AutoPlay will let you assign a password in order to limit access to it, but is apprently only used internally by AutoPlay and not made available for the designer to reference.

      I have been studying how AutoPlay does this and am working on discovering what the variable might be called. No luck yet. So far I am starting to think that the variable is not stored as a variable but rather as a function. More on this later if I dont find my answer.

      If you have any more ideas please help!

      Comment


      • #4
        Re: variables and/or passwords

        There is a variable that captures this value that was accidently left undocumented. It will be updated in the next release, but the variable you can use is %LastPassword%.


        ------------------
        Sincerely,

        Darryl Hnatiuk
        Indigo Rose Corporation

        Comment


        • #5
          Re: variables and/or passwords

          I guess it gets worse for me. In my headlong rush to find the password variable to export, I have realized that the password function is not even working. When I assign a password in the security tab under options, and then build the project, nothing prompts me for a password before I can access the menu. Am I doing something wrong?

          Comment


          • #6
            Re: variables and/or passwords

            Darryl,

            I found that in the binary. In my version 3.0 its called %Last Password% (with a space) but I did not check to see if that was really an Underline. The version with the space did not work so I will try the one you suggested.

            I noticed that when I use the Get Password dialog function that AutoPlay stores the password in a text file in the %SrcDrv directory. It is stored in plaintext. Is this correct or did I miss something? This is important for me as I want to use AutoPlay to protect customer data on the CD (If I can get this all figured out).

            Thanks

            -joro

            Comment


            • #7
              Re: variables and/or passwords

              For those who are interested in how to open msaccess with a password:

              [http://msdn.microsoft.com/library/de...uggingtips.asp

              I noticed that even if I capture a password using a variable (which I cannot yet) that there is no way to pass the variable along in the opendocument action.

              Open Document mydoc /pwd %LastPassword%

              I tried using the execute dialog instead. I used Execute ../somepath/..msaccess.exe

              and in the box below tried to put the command line arguments. The problem is that the buffer is too small to take the arguments. Using %LastPassword% takes up a lot of the buffer space.

              Still no joy :-(

              Thanks

              -joro

              [This message has been edited by joro (edited 12-04-2001).]

              Comment


              • #8
                Re: variables and/or passwords

                Originally posted by joro:
                I guess it gets worse for me. In my headlong rush to find the password variable to export, I have realized that the password function is not even working. When I assign a password in the security tab under options, and then build the project, nothing prompts me for a password before I can access the menu. Am I doing something wrong?
                You have to go into the Project Settings under Action, and from there using Dialog Boxes, choose Get Password. Then simply tell it to use the password list you created under Security.

                Comment


                • #9
                  Re: variables and/or passwords

                  Once again thanks Jito. Your suggestion works for the autorun.exe file now. I still need to capture that password (the variable %LastPassword% and pass it as a command line arg. That variable still gives me problems. If any has an idea on how to handle that part it could help all of us with the problem of using AutoPlay to open external password protected files ( I noticed several other posts).

                  Thanks.
                  -joro

                  Comment


                  • #10
                    Re: variables and/or passwords

                    just out of haha's ...

                    what about setting a new variable?

                    My understanding to it, and I could be wrong, is, setting a new variable basically renames one variable previously used, onto another name, after the first functions have been completed...

                    I am probably way off base, but, oh well, its my two cents.

                    (stop laffin at me) HEHEHEHE :P

                    ------------------
                    Just Some Thoughts...

                    http://www.starchaserdesigning.com.free.new.net

                    Comment


                    • #11
                      Re: variables and/or passwords

                      Originally posted by Jito463:
                      You have to go into the Project Settings under Action, and from there using Dialog Boxes, choose Get Password. Then simply tell it to use the password list you created under Security.
                      So let me ask you this jito....

                      If i set it to use the password list...and then on startup set the
                      Get Password: Boolean - %IfExpire% = TRUE

                      then i dont need command at the beginning of the start up to read from the registry?
                      It does it automatically so to speak?

                      I am trying to install a date on mouse click, and on second and third time users, read from the registry if that date is expired.

                      Will setting the password feature automatically do that for me or do i still have to assign a value with the date??

                      (and what i mean is, does password install sumthing in the registry to go by in reference to the expiration period?)

                      thanks



                      ------------------
                      Just Some Thoughts...

                      http://www.starchaserdesigning.com.free.new.net

                      Comment


                      • #12
                        Re: variables and/or passwords

                        You would need to SET the %IfExpire% variable in order for it to read it for the password. I don't know too much about this function, as the CD I use is for internal purposes only (as in me and me alone), and no one else has access to it. Sometimes it can get left in a customers computer, but rarely. So I haven't really messed with it much.

                        Comment

                        Working...
                        X