About Terminal Server, Citrix, Delphi and other stuff
Have you developed an application that accesses files and may stop because a file cannot be accessed but you need to?
Since Windows Vista it is possible to find out the name of the application which holds open a file.
And we have created a solution for you that doesn’t require a driver, nor does it need Administrator rights! Just plain user source code for you to use instantly.
We have developed a solution in Delphi that can show your user which application stalls your application. Look at these screenshots:
In fact, these dialogs are only for demonstration purposes. But you can get them in addition as a Delphi project!
The code itself is fairly easy to use. We have developed an extension to the official IFileIsInUse Interface from Microsoft.
IFileIsInUse2 = interface(IFileIsInUse)
[‘{C69C0E72-DCE2-474D-AC16-E31B77B526B3}’]
function GetProcessID(out pdwProcessID : DWORD) : HRESULT; stdcall;
end;
All you have to do it to call this function provides by us:
The name of the app is returned by the method GetAppName. And if the other application supports IFileIsInUse (call method GetCapabilities) interface you even can close the file or switch to the window.
You’ll see how it works in the demonstration project (images above) accompanied by the function GetFileInUseInfo.
Currently, we only offer a Delphi solution. C++ may available in future or when there’s enough demand for it.
Please use the Contact Form to get more information about how to obtain the solution and conditions.
Related posts:
Active Directory Altiris Citrix Dell Delphi Excel Exchange Exchange2003 Exchange2010 Hewlett-Packard HP iOS Jailbreak Java LinkedIn Linux McAfee MSI MySQL Navigation Objects Office Outlook Passat PowerPoint PowerShell referall was returned RES RNS315 RNS510 SasLibEx script slow Terminal Server ThinApp TSAdminEx VBS VCDS Vista VMWare Volkswagen Windows PE WLAN Wordpress XenApp
WP Cumulus Flash tag cloud by Roy Tanck requires Flash Player 9 or better.
2 Responses for "Cannot Access Files, But Need the Origin?"
[...] Dit blogartikel was vermeld op Twitter door Stefan Krueger. Stefan Krueger heeft gezegd: RT @RemkoWeijnen: Blogged: find out the name of an application that locks your file and optionally close it: http://bit.ly/fmECSf [...]
[...] [...]
Leave a reply