Questions related about problems modifying files due a second programm with a read- or write-lock.
Questions tagged [file-in-use]
53 questions
0
votes
1 answer
Program error-file in use in visual foxpro
i have to do some forms in visual fox pro 9 for a school project, and if i try to use multiple tables in one form occurs the error> file in use, even if i try to use the command "use thistable" "use secondtable" before the code, then i can…
0
votes
4 answers
How to throw "The file is in use"
I have some files (.xml extensions) that my app requires them to be present as long as my application is open.
So, is there a cross-platform solution to mark these files as "File in use" so that the user cannot delete or modify them?
user10091872
0
votes
1 answer
Remove-Item (and [System.IO.File]::Delete() ) removes file that is in use
I am working on a script to do some cleanup of the many GB of cruft an Autodesk install leaves behind, and I am getting an error about some log file buried deep in the folder structure that is still in use. So, I want to get…

Gordon
- 6,257
- 6
- 36
- 89
0
votes
2 answers
check file for changes using php
Is there any way to check id a file is being accessed or modified by another process from a php script. i have attempted to use the filemtime(), fileatime() and filectime() functions but i have the script in a loop which is checking continuously but…

Vip32
- 3
- 1
- 2
0
votes
1 answer
Detect Windows Automatic Updates
I have software that replaces core OS files. Problem is that Microsoft updates replace those files, rendering the program inoperative. How can I detect file replacement at boot time, due to automatic updates?
My idea is a registry watch on some key,…

unixman83
- 9,421
- 10
- 68
- 102
0
votes
0 answers
How can I skip a workbook if it is in use and locked for editing?
In our company, everyone has a personal Excel sheet where they fill in working hours for each customer and project they work on.
The customers and projects are chosen via dropdown. Customers/projects are altered from time to time and have to be…

RW234
- 1
0
votes
0 answers
How to solve "File is in use" Windows 10 error when the file is actually not in use
I develop software using Visual Studio 2017 on Windows 10 Home with the latest updates. When my application throws an exception, the executable according to Windows remains open by itself. When I (or Visual Studio) try to delete (overwrite it with…

Arkadi
- 1
- 2
0
votes
0 answers
Deleting file throws file in use exception
I have a file upload control that allows users to upload an image file. Rather then forcing them to use a specific size image, I am trying to resize it, save it the resized version to a folder and then delete the original.
When I try to delete the…

NoBullMan
- 2,032
- 5
- 40
- 93
0
votes
2 answers
Check if project is already open by Visual Studio
I need to open a Visual Studio solution from java app, and I want to make sure that this VS project is not already open before opening it.
I thought about 2 solutions:
One, Check if the VS .sln file is locked by another process (see the answers to…

user3114639
- 1,895
- 16
- 42
0
votes
0 answers
Android detect other process writing to file
My Android app uses a file that the user downloads, using a Web browser.
(Yes, I know that there are ways that an Android app can download a file itself, without sending the user to a Web browser. I cannot do that in this app, because the file is…

Lew Lasher
- 81
- 5
0
votes
3 answers
Getting "file in use" error after populating a grid with data from a table after the table has been used in another form
i am a beginner in learning VFP and i am facing a problem.
I have two forms:
a login form with user and password to be completed. theese values are searched in a table from database.
another form containing a grid with dates from the users table.…

user3402533
- 3
- 1
0
votes
1 answer
An opened document which isn't found in Word.Application.Documents but still locked out?
I do some Word automation filling in the blanks in some Word documents which are used as templates.
One template is used more often than the others, and this causes the error, as it locks out and Word is unable to open it, though I wish to open it…

Will Marcouiller
- 23,773
- 22
- 96
- 162
0
votes
2 answers
Dll is confused with a windows-dll with same name causing file-in-use dialog in WiX-Setup
I made several setups with wix suppressing all of the "files-in-use"- and "please restart app/computer now/later"-dialogs by setting following properties:

Sepelio
- 33
- 1
- 4
0
votes
1 answer
File in use by another process error when uploading a file using server but not localhost
I am fairly new to MVC and .NET, and I've hit my first problem that I have been stuck on for 3 days now. I apologize for the lengthy post.
Part of the project I am working on requires that the user be able to select an XLS or XLSX file and upload it…

user2722749
- 1
- 1
- 2
0
votes
2 answers
Check If File Is In Use By Other Instances of Executable Run
Before I go into too detail, my program is written in Visual Studio 2010 using C# .Net 4.0.
I wrote a program that will generate separate log files for each run. The log file is named after the time, and accurate up at millisecond (for example,…

sora0419
- 2,308
- 9
- 39
- 58