Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    Use Shell API commands within VBA to manage Windows environment. I have very little knowledge of Shell commands. I use Shell to copy file into zip folder and to copy the frontend down to user computers.



    Maybe Shell has what you need.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  2. #17
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Why don't you just create different user profiles on your computer? Whatever password you were going to use with your batch file you could assign to a single Administrator. The administrator could be named whatever you choose. Place important stuff in the Admin's User Docs or a folder/drive partition that is owned only by the Admin. Additional users could be anything from Power Users to Special profiles.

    I am going to take a wild guess that a power user could access a DB in a folder owned by Admin. I would imagine they will get a prompt to access the folder and the Power user's right to execute will allow enough permissions for the DB to run. Other permissions required to run script and stuff will be managed through the machine's rights to the folder. Just a guess on my part, but sounds more simple that writing script to adjust permissions of a folder back and forth. You may ultimately find out that you have to toggle Read rights back and forth via PowerShell or something.

  3. #18
    ipisors is offline Access Developer
    Windows XP Access 2007
    Join Date
    Sep 2013
    Posts
    119
    First let's start using the correct terminology. Much time has already been wasted (from what I can tell) just trying to figure out what you mean by "locking" a file or folder. Using precise terms in computer-discussions is extremely important.

    Do you mean setting a file's attributes to read-only? Hidden? Etc?

    Do you realize that in Windows, setting a file to read-only (for example) will successfully make it read only, but also anyone can toggle it to NOT read only, so the attribute is virtually useless to prevent deliberate, intentional hacking etc.

    You may want to look into hiding things inside Winzip encrypted files, or else talking to the IT department at your company about setting active directory permissions to solve your need.

  4. #19
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Quote Originally Posted by ipisors View Post
    ...IT department at your company about setting active directory permissions to solve your need....
    I think the OP is on a standalone W8.1 machine.

  5. #20
    ipisors is offline Access Developer
    Windows XP Access 2007
    Join Date
    Sep 2013
    Posts
    119
    Quote Originally Posted by ItsMe View Post
    I think the OP is on a standalone W8.1 machine.
    Ahh. Understood.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 7
    Last Post: 03-27-2014, 11:47 AM
  2. Access Codes
    By Probie in forum Code Repository
    Replies: 3
    Last Post: 06-04-2013, 01:18 PM
  3. Intercepting error codes like 2220, file not found
    By justphilip2003 in forum Programming
    Replies: 4
    Last Post: 04-21-2013, 11:33 AM
  4. Errors with Access file for multiple users
    By Monterey_Manzer in forum Access
    Replies: 3
    Last Post: 06-20-2012, 03:44 PM
  5. Blank column causing errors on import
    By brickballer in forum Import/Export Data
    Replies: 7
    Last Post: 05-20-2011, 12:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums