How to force delete a file? [closed] - windows

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
This question exists because it has
historical significance, but it is not
considered a good, on-topic question
for this site, so please do not use it
as evidence that you can ask similar
questions here.
How can i force Windows XP to delete file that is currently being used by some application?

You have to close that application first. There is no way to delete it, if it's used by some application.
UnLock IT is a neat utility that helps you to take control of any file or folder when it is locked by some application or system. For every locked resource, you get a list of locking processes and can unlock it by terminating those processes. EMCO Unlock IT offers Windows Explorer integration that allows unlocking files and folders by one click in the context menu.
There's also Unlocker (not recommended, see Warning below), which is a free tool which helps locate any file locking handles running, and give you the option to turn it off. Then you can go ahead and do anything you want with those files.
Warning: The installer includes a lot of undesirable stuff. You're almost certainly better off with UnLock IT.

Related

How can I delete the Windows.old directory? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I've been trying to delete this extremely stubborn folder and nothing seems to work. First I tried the disk cleanup tool in the windows control panel, then CCleaner, and finally followed by a barrage of cmd tricks. I think one of the sub-files located under System32 is corrupt, because when I go to delete it normally I get the "The system could not find the specified item..." error. I even tried taking ownership of all files and folders within Windows.old, but was STILL denied access! Please help!
It's pretty simple to remove:
Click in Windows' search field, type Cleanup, then click Disk Cleanup.
Click the "Clean up system files" button.
Wait a bit while Windows scans for files, then scroll down the list until you see "Previous Windows installation(s)."
Select Previous Windows installation and anything else you want to remove and select OK.
If you've made all these attempts to remove it already though, you may have broken Windows ability to remove the folder.

Can I restore previous contents of the clipboard on Windows? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I had filled in an application form in which I made a payment and copied the application number by "Ctrl+C" command (and unfortunately I didn't note it anywhere).
And after that I copied some other thing but I didn't notice my application number has washed off from the temporary memory. I even tried to login but was unsuccessful.
I now need help: is there any method to print all copied things (I have not copied any file only some text like email id's and else). I have not turned off my PC since that. Please tell is there any method to print on note pad or any other?
Windows Systems do not save the clipboard history. There is only one item stored in the clipboard. If you copy something new the previous clipboard contents is overwritten and lost forever. To get the full Microsoft clipboard history you need to use third-party utilities such as clipdiary or Clipboard History extension.

How to make a Logon script secure in windows [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I have a logon batch script that runs a .reg file for all user when they log in. here's my script
#echo running
REGEDIT.EXE /S "C:\user_files\user.reg"
Now my concern is that the batch file itself is located in
C:\Windows\System32\GroupPolicy\User\Scripts
Every user has access to this directory. So anyone can change the batch and may cause security threat. Is there a way to make it more secure. or is can I do something similar with PowerShell scripting so there's no batch. If someone could point me to the right direction would be very helpful.
your script needs to be readable by your users, but you can take away their rights to modify it -- that's a typical file system feature that every Windows since NT has (aside from windows 9x, of course).
Hence, simply remove the write privileges from the user group in which your users are, and you're fine.

Is there a way to handle locked file from command line and release it? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Is there a way to detect locked files in specify folder and release them by command line?
Something like this in pseudo-code:
for file in folder do
unlock file
Yes, this is possible using a free utility called Handle, by Mark Russinovich.
It can be download here from Microsoft.
This runs from the command line, and will tell you which program has a particular file or directory open, based on whether it has an open handle to that resource.
By running handle.exe with the -c flag, you can also force the specified handle closed, which will unlock the resource. But fair warning: this will likely cause the application using the resource to crash, perhaps even the entire system to become unstable. So I wouldn't make a habit of doing this; only use it for special cases like debugging where you expect some instability.
No, you can't you have to close the application holding the lock first. Unlocker may help you locate the source of the lock - if it's a crashed application then you'll be able to terminate it's process.

Folder keeps changing to read-only [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I'm trying to change a folder to read and write but everytime i check it again its read only
the folder is the oracle db home. When i untick read-only it it applies it but when i press ok check it again it's read-only
anyone know a solution?
i've got windows xp
The read-only attribute on folders doesn't actually mean the folder is read-only.
It doesn't mean anything much at all to the filesystem but it is used by the Windows shell, and maybe other applications, as a tag. For example, the Windows shell will only look for a Desktop.ini file if a folder has the read-only attribute set. (Thus the attribute allows it to avoid the lookup if it is missing, since the lookup can be quite slow on network drives.)
Unless you have a reason to care about the attribute the solution is to ignore it and let whatever is setting it have its way. It's probably setting it for a reason.
On the other hand, the read-only attribute on files is significant.

Resources