CN102591639A - Method for setting permission of Windows folders - Google Patents

Method for setting permission of Windows folders Download PDF

Info

Publication number
CN102591639A
CN102591639A CN2011104197585A CN201110419758A CN102591639A CN 102591639 A CN102591639 A CN 102591639A CN 2011104197585 A CN2011104197585 A CN 2011104197585A CN 201110419758 A CN201110419758 A CN 201110419758A CN 102591639 A CN102591639 A CN 102591639A
Authority
CN
China
Prior art keywords
file
authority
folders
windows
folder
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2011104197585A
Other languages
Chinese (zh)
Other versions
CN102591639B (en
Inventor
陆明添
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vtron Technologies Ltd
Original Assignee
Vtron Technologies Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vtron Technologies Ltd filed Critical Vtron Technologies Ltd
Priority to CN201110419758.5A priority Critical patent/CN102591639B/en
Publication of CN102591639A publication Critical patent/CN102591639A/en
Application granted granted Critical
Publication of CN102591639B publication Critical patent/CN102591639B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a method for setting permission of Windows folders. The method includes the steps: displaying a Windows folder system in a tree-shaped structure; adding a control in front of the name of each folder; and leading the controls to represent folders with set permission and folders without set permission in forms. The method for setting the permission of the Windows folders has the advantages that a user can clearly know and identify the folders with the set permission and the folders without the set permission, and accordingly is prevented from repeatedly setting permission for the folders with the set permission during permission setting, the method is flexible and convenient, execution efficiency of programs is remarkably improved, and excellent experience is brought for the user.

Description

The method of Windows file authority is set
Technical field
The present invention relates to mutual display technique field, relate in particular to a kind of method of the Windows of setting file authority.
Background technology
The reinforcement of Along with people's confidential notions is carried out the authority setting to file and is paid attention to by increasing people.At present; All there is a shortcoming in major part to the method that the Windows file carries out the authority setting; No mark can be sought after that had been provided with authority exactly; The user can't open-and-shutly learn which file be set up authority, which file is again not to be set up authority, the easy like this user of causing forgets the operation of oneself once doing, user experience is very poor.
And, also can exist such as underaction and the lower problem of efficiency ratio when adopting prior art that the Windows file is carried out the authority setting.For example: the user need carry out the authority setting to the sub-folder of file A, and after all sub-folders of file A all were set up authority, the user hoped that file A also has the authority identical with its sub-folder.If use general authority setting method; Because whether can't discern file had been set up authority; Therefore need carry out the authority setting again to file A and all sub-folders thereof; There are a large amount of authority settings that repeat undoubtedly in this operation, has so reduced executing efficiency widely.A kind of in addition situation is worked as file A exactly has the parton file to be set up authority; When the user directly carries out authority when being provided with to file A; Be set up authority owing to can't learn concrete which sub-folder, so program can carry out the authority setting once more to this part file that had been set up authority, can have a large amount of repetitive operations equally in this case; Had a strong impact on executing efficiency, the waste user time.
Therefore, how, become problem demanding prompt solution for the user provides a kind of very clear, flexible and have the method that Windows file authority is set of greater efficiency.
Summary of the invention
For addressing the above problem, the present invention provides a kind of method of the Windows of setting file authority, can file that be set up authority and the file that was not set up authority effectively be distinguished, thereby improve the efficient that Windows file authority is set.
For realizing above-mentioned purpose, the present invention adopts following technical scheme:
A kind of method that Windows file authority is set; May further comprise the steps: show the Windows file system folder with tree structure; And at control of each file name front interpolation, the file that this control will be set up authority comes out with different embodied with the file that is not set up authority.
The method that Windows file authority is set of the present invention; Come out with different embodied with the file that is not set up authority with the file that will be set up authority through add a control in Windows file name front; Make the user can open-and-shutly know that which file had been set up authority, which file is not set up authority as yet; So can effectively avoid the user file that authority was set to be repeated to be provided with when being provided with carrying out authority; Flexible, and obviously improved executing efficiency, bring favorable experience to the user.
Description of drawings
Fig. 1 is provided with preceding initial effect synoptic diagram for authority;
Fig. 2 is the effect synoptic diagram of authority after being provided with;
Fig. 3 is the effect synoptic diagram after further authority is provided with;
Wherein, the state of the lock that color is the darkest is NULL, and the state of grey lock is True, and the state of the lock of opening is False.
Embodiment
The present invention provides a kind of method of the Windows of setting file authority, can solve in the prior art Windows file is carried out can not open-and-shutly learning when authority is provided with that which is the file that was set up authority, which is not to be set up the file of authority and the problem that Insufficient privilege is flexible and efficiency ratio is lower is set.
The method that Windows file authority is set of the present invention may further comprise the steps:
Show the Windows file system folder with tree structure, and the control of each file name front interpolation in system, the file that this control will be set up authority comes out with different embodied with the file that is not set up authority.
The benefit that shows the Windows file system folder with tree structure is to make the structure of system clear, and resolution is high, and final-period management is also than being easier to.As an embodiment preferably, when carrying out program design, can use the TreeView control in WPF (the Windows Presentation Foundation) application program to show the folder information in the Windows file system folder in addition.The user can carry out the authority setting through tree structure select File folder; The file that was set up authority will come out to be different from the embodied that is not set up authority in tree structure, can effectively avoid the user file that authority was set to be repeated to be provided with when being provided with carrying out authority like this.
Preferably, the said control that before each file name, adds can be the CheckBox control.The attribute IsChecked value of this CheckBox control comprises: True, False and NULL.We define as follows it:
When file and all sub-folders thereof, file are all carried out authority when being provided with by the user, said attribute IsChecked value is True;
When file and all sub-folders thereof, when file is not set up authority, said attribute IsChecked value is False;
Carried out authority when being provided with when file accompanies (and only having) parton file by the user, said attribute IsChecked value is NULL.
The method that Windows file authority is set of the present invention; Can also comprise the steps: the TreeView initialization; Promptly when each program withdraws from; The file authority change information of current tree structure is saved as a file, and the information of when next program start, preserving according to this document is then carried out initialization to the displaying contents of TreeView control, and only preserving TreeView file folder state in the above-mentioned file is that NULL perhaps is the file absolute path of True.Before the initialization, the displaying contents of TreeView is empty, and after the initialization, what folder content that can display system among the TreeView and user were the last carries out the information that authority is provided with to file.
In order further to improve program start efficient, general only meeting generates the two-stage catalogue during program start in TreeView, and then preserves file reduction user's operation information according to information.Method is following: if from information preservation file, learn that this document folder state should be NULL; Program will change its state in TreeView into Null and travel through its sub-folder then; If its son file accompanies file status and should be just continuation traversal of NULL next stage; Continue traversal otherwise return the upper level catalogue, by that analogy, be actually a recursive procedure.When the authority of in this ergodic process, finding file should will change its state in TreeView into True for True, the state of its all sub-folders in TreeView also is True.
After the TreeView initialization, file or selections that user's selection in TreeView need be provided with authority need be cancelled and click authority behind the file of authority the setting (user need define the permission type that needs setting in advance) that button just begins to carry out authority is set.In order further to improve the dirigibility that authority is provided with, file being carried out authority when being provided with, can not also be applied to its sub-folder and subobject to this authority setting, at this moment at first need travel through its all sub-folders and then this document folder carried out the authority setting.
When authority was provided with beginning, the TreeView folder state after program can at first be provided with current TreeView folder state and last authority compared.Concrete comparable situation is following:
1. current file folder state is NULL, when state was True after the last time was provided with, continues the sub-folder of traversal this document folder, and finds out the file that all current states are False, cancels the authority setting of (comprising its all sub-folders) of these files; If last state is NULL, then continue its sub-folder of traversal; If last state is False, continues the sub-folder of traversal this document folder, and find out the sub-folder that all current states are True, then to carrying out the authority setting their (comprising its all sub-folders);
2. current file folder A condition is True, when state was NULL after the last time was provided with, continues the sub-folder of traversal this document folder, is NULL if it also has the sub-folder state, then continues to travel through, and this is actually a recursive procedure.Finding out all former states is the sub-folder of False, and these files (comprising its all sub-folders) are carried out the authority setting.Also can judge in addition whether this document folder A has been set up authority this moment, not carry out the authority setting if having then this document is pressed from both sides A; If last state is False, then this document folder (comprising its all sub-folders) is carried out the authority setting;
If 3. file A current state is False, and state was True in the past, then cancelled the authority setting of these files; If state was NULL in the past; Then continue its sub-folder of traversal, find out all and be the sub-folder of True state in the past, cancel the authority setting of these sub-folders then; Also can judge whether this document folder A is set up authority this moment, if then cancel its authority setting.
In order further to improve file (comprising its all sub-folders) is carried out the efficient that authority is provided with; Carry out authority when being provided with at all sub-folders of traversal; Can use the method for all sub-folders that can directly enumerate file rather than write a recursive function (for example GetDirectories () and this class function of GetFiles ()) and remove to travel through all sub-folders, can improve the efficient of traverse folder so widely.Can use and travel through with minor function:
foreach(string?folder?in?Directory.GetFiles(p,″*″,SearchOption.AllDirectories))
{
}
Come scheme of the present invention is done further to describe below in conjunction with accompanying drawing and concrete embodiment:
Start Windows file authority setting program; As shown in Figure 1, suppose that current All Files folder state is False and (distinguishes file with several kinds of different conditions of that lock of file name front in the present embodiment and whether be set up authority, wherein; It is NULL that the state of the lock that color is the darkest is represented this document folder state; It is True that the state of grey lock is represented this document folder state, and it is False that the state of the lock of opening is represented this document folder state), under the visible initial situation; That lock before each folder name is literal is open mode; Choosing several files to make its state arbitrarily is True, clicks authority then button is set, and program begins these files and all sub-folders are carried out the authority setting.After the authority setting finishes, check the authority information of these files, find to change on request.Close the authority setting program then; When opening program once more, as shown in Figure 2, the state of finding eight locks from top to bottom by before all open that to have become the 1st lock be that (color is the darkest for the black lock; Expression NULL), the 3rd, 4,5,7 lock becomes closed grey lock (expression True); After showing that then employing method of the present invention is operated, the folder state that is provided with before can correctly showing, and come into plain view.
Can further verify the correctness of the inventive method.At first start Windows file authority setting program, assumed initial state is as shown in Figure 2, adopts method of the present invention to carry out authority and revises the back bolt down procedure; And then the program of opening checks that the result is as shown in Figure 3 in discovery, empirical tests; File permission is revised successfully; And do not repeat revised file folder authority, efficiency ratio is higher, and user experience is also relatively good.
Can see through above scheme; The method that Windows file authority is set of the present invention; Come out with different embodied with the file that is not set up authority with the file that will be set up authority through add a control in Windows file name front; Make the user can open-and-shutly know that which file had been set up authority, which file is not set up authority as yet, so can effectively avoid the user file that authority was set to be repeated to be provided with when being provided with carrying out authority, flexible; And obviously improved executing efficiency, brought favorable experience to the user.
Above-described embodiment of the present invention does not constitute the qualification to protection domain of the present invention.Any modification of within spirit of the present invention and principle, being done, be equal to replacement and improvement etc., all should be included within the claim protection domain of the present invention.

Claims (7)

1. the method that Windows file authority is set is characterized in that, may further comprise the steps:
Show the Windows file system folder with tree structure, and add a control in each file name front, the file that this control will be set up authority comes out with different embodied with the file that is not set up authority.
2. the method that Windows file authority is set according to claim 1; It is characterized in that the process of said demonstration Windows file system folder specifically comprises: use the TreeView control among the WPF to show the folder information in the Windows file system folder.
3. the method that Windows file authority is set according to claim 2 is characterized in that, the said control that before each file name, adds is the CheckBox control.
4. the method that Windows file authority is set according to claim 3 is characterized in that, the attribute IsChecked value of said CheckBox control comprises: True, False and NULL;
When file and all sub-folders thereof, file are all carried out authority when being provided with by the user, said attribute IsChecked value is True;
When file and all sub-folders thereof, when file is not set up authority, said attribute IsChecked value is False;
Carried out authority when being provided with when file accompanies the parton file by the user, said attribute IsChecked value is NULL.
5. the method that Windows file authority is set according to claim 4; It is characterized in that; Also comprise step: when each program withdraws from; The file authority change information of current tree structure is saved as a file, and the information of when next program start, preserving according to this document is then carried out initialization to the displaying contents of TreeView control, and preserving TreeView file folder state in the said file is that NULL perhaps is the file absolute path of True.
6. according to any described method that Windows file authority is set of claim 1-5, it is characterized in that,, at first travel through its all sub-folders, then this document folder is carried out the authority setting file being carried out authority when being provided with.
7. the method that Windows file authority is set according to claim 6 is characterized in that, the process of said all sub-folders of traversal specifically comprises: use the method for all sub-folders of directly enumerating file to travel through all sub-folders.
CN201110419758.5A 2011-12-14 2011-12-14 Method for setting permission of Windows folders Expired - Fee Related CN102591639B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110419758.5A CN102591639B (en) 2011-12-14 2011-12-14 Method for setting permission of Windows folders

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110419758.5A CN102591639B (en) 2011-12-14 2011-12-14 Method for setting permission of Windows folders

Publications (2)

Publication Number Publication Date
CN102591639A true CN102591639A (en) 2012-07-18
CN102591639B CN102591639B (en) 2014-12-24

Family

ID=46480366

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110419758.5A Expired - Fee Related CN102591639B (en) 2011-12-14 2011-12-14 Method for setting permission of Windows folders

Country Status (1)

Country Link
CN (1) CN102591639B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106874718A (en) * 2016-07-27 2017-06-20 阿里巴巴集团控股有限公司 privacy processing method, device and terminal
CN107301352A (en) * 2017-06-22 2017-10-27 郑州云海信息技术有限公司 A kind of method and device of priority assignation

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6321334B1 (en) * 1998-07-15 2001-11-20 Microsoft Corporation Administering permissions associated with a security zone in a computer system security model
CN1553379A (en) * 2003-05-29 2004-12-08 杨子江 Attribute catalogue structure viewing method
US20050246352A1 (en) * 2004-04-30 2005-11-03 Microsoft Corporation Property tree for metadata navigation and assignment
CN101359355A (en) * 2007-08-02 2009-02-04 芯微技术(深圳)有限公司 Method for raising user's authority for limitation account under Windows system
US20090064285A1 (en) * 2007-08-31 2009-03-05 Fuji Xerox Co., Ltd. Electronic information management device, computer readable recording medium, method for controlling access, and method for transferring data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6321334B1 (en) * 1998-07-15 2001-11-20 Microsoft Corporation Administering permissions associated with a security zone in a computer system security model
CN1553379A (en) * 2003-05-29 2004-12-08 杨子江 Attribute catalogue structure viewing method
US20050246352A1 (en) * 2004-04-30 2005-11-03 Microsoft Corporation Property tree for metadata navigation and assignment
CN101359355A (en) * 2007-08-02 2009-02-04 芯微技术(深圳)有限公司 Method for raising user's authority for limitation account under Windows system
US20090064285A1 (en) * 2007-08-31 2009-03-05 Fuji Xerox Co., Ltd. Electronic information management device, computer readable recording medium, method for controlling access, and method for transferring data

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106874718A (en) * 2016-07-27 2017-06-20 阿里巴巴集团控股有限公司 privacy processing method, device and terminal
CN106874718B (en) * 2016-07-27 2020-12-15 创新先进技术有限公司 Privacy processing method and device and terminal
CN107301352A (en) * 2017-06-22 2017-10-27 郑州云海信息技术有限公司 A kind of method and device of priority assignation

Also Published As

Publication number Publication date
CN102591639B (en) 2014-12-24

Similar Documents

Publication Publication Date Title
US10977370B2 (en) Method of remediating operations performed by a program and system thereof
US6523134B2 (en) Selective undo
CN102236764B (en) Method and monitoring system for Android system to defend against desktop information attack
US20120159427A1 (en) System and method for extracting uml models from legacy applications
GB2496378A (en) Smart window creation in a graphical user interface
US20070186176A1 (en) System and method for window tab organization
CN107908958B (en) SELinux security identifier anti-tampering detection method and system
CN103577417B (en) The method and apparatus for clearing up desktop
CN104268473B (en) Method and device for detecting application programs
CN107766252A (en) Test script automated execution method, apparatus, equipment and storage medium
Bunke et al. An architecture-centric approach to detecting security patterns in software
CN105095564A (en) Data processing method and apparatus based on building information model
CN102819717B (en) Method and device for carrying out protection processing on file
CN108536596A (en) Automated testing method, readable medium based on object formation data and equipment
CN102591639A (en) Method for setting permission of Windows folders
CN106170790A (en) Service picture library user interface presents
CN108228168A (en) A kind of revocation, the abstract method of recovery operation
CN102222189A (en) Method for protecting operating system
US9038018B2 (en) Integrating software components
US20090193411A1 (en) Method and system for assessing deployment and un-deployment of software installations
CN102446252A (en) Method and device for showing off-limit files
CN111625813B (en) Method for protecting program by modifying process
CN103186388A (en) Software installation method and device
CN112699372A (en) Vulnerability processing method and device and computer readable storage medium
KR101638424B1 (en) Method and system for managing ADD IN program and PDMS database

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20141224

Termination date: 20151214

EXPY Termination of patent right or utility model