Access Denied message when trying to open hidden folder in windows - windows

Earlier i was using one batch file to lock my file/folder in windows. That time i locked my one folder from D Drive. It was working fine for me. But after some windows update i am not able to unlock my folder using this batch file.
I know this batch file is using cacls command to change the attribute of folder. It changes it's attribute as hidden and system folder. I tried cacls command as well from cmd but still it gives me Access Denied error.
Please suggest me any approach to get access to this folder. It will be appreciated.
Thanks!

Related

dhcpsapi.exe File keep running in task manager

I have a file with description "Подключаемый модуль пересылки событий WS-Management" and name dhcpsapi.exe running in task manager. It seems like a virus to me.Whenever i tried to delete or open its location i am getting access denied in my admin account.Tried to delete it from cmd-Administrator but keep getting the error 'Access Denied'.
I can't see its folder in file explorer or in hidden files but can see it in command prompt (dir /a).
I need to access this folder and delete it. How do i access it from command prompt or from windows explorer.
Screenshot of file properties
Resolved. I unchecked hide protected items from folder options. Then gave permission to User but it was still inaccessible and windows defender scanned that folder and identified it as a trojan virus and removed the process from task manager. Then i deleted that folder with a software 'unlocker' from drive and recycle bin.
Screenshot of file details

Windows directory with no permissions

I accidentally removed all permissions from a directory on a Windows 2008 server. I can see the directory when listing contents of its parent both through Windows Explorer and DOS, but I can't do anything else. No matter what I try, the system essentially acts like I'm trying to work with a directory that doesn't exist. Trying to change the permissions through Windows Explorer yields a message that the security information is not available (on the Security tab). I've also tried takeown and modifying permissions with icacls, both of which report file not found. My account is part of the Administrators group. The account that created the folder (the owner before I messed up the permissions) can't even see the directory when listing contents of its parent. dir /q reports the owner of the directory as "...". Is there anything that can be done here or is this directory lost?
The solution here was to log in using the local administrator account and run takeown /F on the directory in question. From there, I was able to reset the permissions of the directory and all of its contents.

Make an app open on typing the name in run command

I want to open certain folders and files using run command.
I know that creating a shortcut for the required file or folder and placing it in the System32 folder will do the task. However i don't like to use System32 folder.
I would like to know if it is possible to create a folder under local hard disk and put the shortcuts into that and i would route it some how such that i would be able to open the apps and the files directly by typing the name of the shortcut into the run window.
Setting any Environment Variables would help?
Adding the folder to the PATH variable solved the issue.
As correctly answered by a_horse_with_no_name.

Visual Studio post-build copy failing (but works on the command line)

In VS 2010, I have a post-build event copying project assemblies into a common .dll folder. The .dll folder is mapped by a virtual drive (R:).
On running, I get the following: The command "copy /y "C:\CommonDLLs\Utilities.dll" "R:\"" exited with code 1.
The thing is, when I run copy /y "C:\CommonDLLs\Utilities.dll" "R:\" at the command prompt, it works correctly. I'm running VS as an admin, so I should have permissions to execute the command. Other people using the same code from source control are having no problems, but I'm stumped as to what to fix to get the copy to work correctly. Anyone have any suggestions?
EDIT: more information
The R drive is mapped/created/populated initially by a .bat script that I run as an admin as well. if I update my scripts to run to the location the R drive points to, everything runs ok, so I think this might be a drive mapping issue. The thing is, I(as a local admin) have full control over both the folder and the drive mapping.
I would guess that the virtual drive does not exist under the Admin account and as such cannot be found.
Either don't run VS as Admin, or set up the virtual drive in an command prompt running as Admin.

error when i want to save java file in jdk/bin

when i save java file error is you dont have permission to save in this location contact the administrator to obtain permission on window7
Don't store application data in the "Program Files" directory.
It is very bad design and regular users don't have write access to that directory (for a very good reason).
So even if you changed your settings locally to open up the door for viruses your application won't run on other computers.
Besides: storing a Java file in the JDK directory serves no purpose at all.
Btw: your uppercase letters are broken, as well as the dot or the comma...
That's normal - jdk/bin is the installation directory of the JDK, regular users cannot (and should not) write files there. You'll have the same problem on Linux/Unix and on Mac OS X, where installation directories are off-limits to regular users.
Write your files to the users home directory (System property "user.home", works across platforms), or let the user choose where you save stuff.
Bin directory do not allow directly to save program in it.
it is so simple, just save your .java file on desktop and then copy paste it in Bin. done ;)
If the file can't save directly to c:\program files\java\jdk1.8.0\bin\
Solution:-
Click start Menu type Notepad command in run run as administrator
Right click the Notepad run as Administrator, then type the program file can save directly to c:\program files\java\jdk1.8.0\bin\
Just try it......

Resources