473,398 Members | 2,380 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Opened files

Is there a way to get to know if a file is opened by a process?
Dec 2 '07 #1
1 1244
In article <76**********************************@s36g2000prg. googlegroups.com>,
KnUser <kn**********@gmail.comwrote:
>Is there a way to get to know if a file is opened by a process?
In the standard C library, there isn't even such a thing as a "process".

Information about open files is operating system dependant. You will
need to ask your question in a newsgroup or mailing list specific to
your OS.

Note: your question is ambiguous and can be interpreted in at least
three ways. When you ask in the other newsgroup, you should be more
specific:

A) Is there at least one file that a specific process XYZ has open?
(For some particular definition of 'file' -- e.g., are you including
devices?)

B) Does specific process XYZ have specific file ABC open?

C) Is there some process which has specific file ABC open?
Note: if your operating system of interest is derived from Windows NT
then I suggest you check out the programs from sysinternals.com
(a wholely owned Microsoft division.)
--
"History is a pile of debris" -- Laurie Anderson
Dec 2 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: martijn | last post by:
Hi There, my vb app can open files. Well, actually my vb app launches word or excell to open them. These files are shared in a network. If somebody else has allready opened that file, you...
3
by: Douglas Buchanan | last post by:
Buttons don't work if form is opened on startup A2k If 'frmMain' is set to open by default at startup none of the buttons work. If 'frmMain' is opened from the database window then all the...
0
by: Ivaylo Georgiev | last post by:
In my app I have to open many doc files that after users edition have to be updated in database /MS Access/ I use System.Diagnostics.Process.Start() method When the file is opened with WINWORD if...
3
by: EC | last post by:
I am using in VS 2003. All files in a Solution package I'm working on are opened whenever I open the (.sln) solution file. I could manually close about 100 of of these open file and then close the...
12
by: Rob Nicholson | last post by:
We've implemented functionality to allow a user to download a document (any document type) from the IIS server using the following code: Response.Clear() Response.ContentType =...
7
by: emanshu | last post by:
HI all, I an designing an application in C++. i want to open file requested by end user but i want to reflect an error to user if file is already opened by some other application.. will anybody...
1
by: John | last post by:
Hi, I'm having a problem opening / downloading csv files when called from a page opened with window.showModalDialog( ). To isolate this problem, I've written 3 files (see below). 1. main.htm...
2
by: John | last post by:
Hi, I posted this earlier in microsoft.public.dotnet.framework.aspnet, but didn't get a response, so I thought I'd try here. Basically, I'm having a problem opening / downloading csv files...
3
by: Charlie Brookhart | last post by:
I have created a program that opens a file and counts words, characters, sentences, etc. I have not used the open file dialog control found in the VB ..NET 2003 toolbox. I instead have used...
2
by: BAnderton | last post by:
Greetings from beautiful Tucson, Arizona. Question: Is there a way in Python to determine what all file identifiers have been opened by Python, and to close them all? Why I ask: I learned...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.