Read Mode
Default

Rights modifier By kvc

Rights modifier By kvc
A Preview
Rights Modifier by Kvc, is an simple Batch program that will help you in managing access properties of the files or folders in your computer. Sometimes due to some problem or unwanted event, you lose your access over the files, and when you try to open or move those files, Windows simply say that "You don't have access to this File" or "Access Denied".

Rights modifier By kvc
Can't open my text file
In those cases, When you can't use your own data, you can use this amazing Batch program. This simple and short 2 KB's of Batch program will make your life very easy.

Just double click on it, and respond acurately to the information asked to you. Thats all. You'll successfully get your access back. In some cases when it is not working, try running the program as Administrator, and Then problem will run out of your window.

Rights modifier By kvc
Username List
Copy and Save the Code below as 'Rights Modifier.bat' OR you can download the Batch File from  the link given below at the Bottom of this Post...

Rights modifier By kvc
Completing Actions
----------Code Starts----------

:: For this program to be More effective....Run it as Administrator...

:: Note => The line after Double Quotes is a Comment and have no effect on the working of this program...
:: Program Name : Rights Modifier by Kvc 
:: Version : 1.0
:: Date Created : 26.5.2014 , 11:23 pm [monday]
:: Created by : Karanveer chouhan 
:: Contact : karanveerchouhan@gmail.com or karanveerchouhan.kvc@facebook.com


::Before using this program...Here's Really Serious WARNING FOR YOU :-

:: 1. Don't Lock Important Folders , such as Windows folders...that may contain info. about OS ..because if 
:: you do so...next time windows will not boot....
:: 2. Don't Use this Program for breaking into someone's Privacy...Only you will be responsible for that...
:: 3. Education purpose program only....

@echo off

cls
Title Rights Modifiers by Kvc... Ver. 1.0
echo.&echo.
set a=1
if [%1] equ [] (goto top)
set fpath=%~1 (goto check)

:top

Set /p "fpath=Enter Folder/File path or just Drag it here : "
if not defined fpath (goto top)

:check
REM Removing surrounding Quotes of user-input
set fpath=%fpath:"=%

REM checking Availability of file/folder...
if not exist "%fpath%" (goto error1)

goto menu

:menu
cls
echo.
echo. Target Folder/File : "%fpath%"
echo.
echo. Menu Options !!!
echo.
echo. {options} {Key to press}
echo.
echo. 1. Make Read only [R]
echo. 2. Make Write only [W]
echo. 3. Allow Changing Content [C]
echo. 4. Make Full Control [F]
echo. 5. Remove Full Control ^(Deny^) [N]
echo.
echo.
choice /n /c "rwcfn" /m "Press Specified Key : "
goto %errorlevel%

:1
set access=R
goto user

:2
set access=W
goto user

:3
set access=C
goto user

:4
set access=F
goto user


:5
set access=N
goto user

:user
cls
echo. Total Users on This Computer !!
echo.
echo. --------------------------------------------------------------------------
setlocal enabledelayedexpansion
set a=1
for /f "tokens=*" %%a in ('dir "%systemdrive%\users" /b') do (
echo. !a!. %%a
set /a a=!a!+1
)

echo. --------------------------------------------------------------------------
echo.&echo.

:get_user

set /p "user=Enter Any Username From List Above : "
if not defined user (goto get_user)
if not exist "%systemdrive%\users\%user%" (goto error2)
goto modify

:modify
cacls "%fpath%" /e /c /p "%user%":%access%
echo.
timeout /t "3" >nul
exit /b

:error1
echo.
echo. Invalid File/Folder Path ...Try Again !!
echo.
timeout /t "1">nul
Set fpath=
goto top

:error2
echo.
echo. Invalid Username or The User you Entered Don't Exist ...Try Again !!
echo.
timeout /t "1">nul
Set user=
goto get_user

:end
exit /b
----------Code Ends----------

Download link : Rights modifier.bat


#TheBATeam

No comments:

Powered by Blogger.