C# .NET - how to get file name
Asked By Ashwin Upadhyay
06-Feb-10 12:09 AM
i want to find the name of office document(any like exel,word,access...etc) which is currently open on my operating system. It all is done through my C# code. If any one have any idea on that so plzz share it.
I created Shared add-in for that and also record the opening, closing time of that document and the time which the user spend on that is also recorded and did entry in databas but only the name of file is not getting and entered into database.
Are you creating some spyware program?
Ashwin Upadhyay replied to [)ia6l0 iii
no its not spyware program.
actually i am creating a s/w like that when it install on client computer then the client watch his employee that is how much time employee work on particular file every thing is recorded by this.
This is what I call Corporate Spyware.
It is annoying to say, that you would be part of this.
Suggest your client an alternative. There are quite a handful of programs that let's you create a environment where you would have to checkout any file, do the work and then later check in. The difference in two timestamps with the username would give you what you need.
You might be just crossing the lines of privacy, if you attempt to do whatever you say in the way you have projected it. And moreover such applications can be killed using Task Manager and would lead to inefficient time tracking.
How would you simply exclude the work done on personal office files (like his Resume , per say) with the ones that you may need to track.
In case, your client is adamant about a time tracking system, tell him that you will develop a new - customized time tracking system and have your own file formats.
Funny, isn't it?
Ashwin Upadhyay replied to [)ia6l0 iii
But in client office nothing is allow then work.
That means the employee do only client work.not other or not personal and client want to knw an employee doing his work or not.

Setup MS Office SharePoint 2007 Test / Dev Environment Authentication Problems Hello all, i like to setup a fast means the installation should be on a single server as Domain Controller , as MS SQL database server and as MOSS2007 server farm. Only one uses should be used. Thats what I 05.38 OWSTIMER.EXE (0x0980) 0x0988 Windows SharePoint Services Topology 9e7d Medium Initializing the configuration database connection. 03 / 04 / 2010 13:53:11.35 OWSTIMER.EXE (0x0980) 0x0988 Windows SharePoint Services Database 880i High System.Data.SqlClient.SqlException: Die von der Anmeldung angeforderte 'SharePoint_07_Config'-Datenbank kann nicht Strin. . . 03 / 04 / 2010 13:53:11.35* OWSTIMER.EXE (0x0980) 0x0988 Windows SharePoint Services Database 880i High . . .g newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) bei System.Data.SqlClient.SqlInternalConnectionTds CreateConn. . . 03 / 04 / 2010 13:53:11.35* OWSTIMER.EXE (0x0980) 0x0988 Windows SharePoint Services Database 880i High . . .ection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) bei System.Data.ProviderBase Sys. . . 03 / 04 / 2010 13:53:11.35* OWSTIMER.EXE (0x0980) 0x0988 Windows SharePoint Services Database 880i High . . .tem.Data.SqlClient.SqlConnection.Open() bei Microsoft.SharePoint.Utilities.SqlSession.OpenConnection() 03 / 04 / 2010 13:53:11.35 OWSTIMER.EXE (0x0980) 0x0988 Windows SharePoint Services Database 880j High SqlError: 'Die von der Anmeldung angeforderte 'SharePoint_07_Config'-Datenbank kann nicht geöffnet werden. Fehler
error database not connected when enter new data in access database Hi, , Good Morning every body . . In my asp.net project, i can login, edit, change password but when enter a new data in ms access then display msg database not connected . . kindly give me proper solution ASAP. . Note:i give full access from security 2 10600 Are you sure you want to permanently delete the selected relationship from your database?@92 10601 A relationship already exists.@Do you want to edit the existing relationship? To 10606 You can't display queries or linked tables in the Relationships window for this database.@The database ' | ' was created in an earlier version of Microsoft Access.If you want to convert this database to the current version of Microsoft Access, use the Convert Database command on the Tools menu (Database Utilities submenu). 10607 The relationship has been created as
Most web applications have connections to databases and use XML to transfer data from the database to the web application and vice versa. Every major database vendor has proprietary extensions for using XML with relational databases, but they take completely different and many projects provide ways to query relational data using an XML view of the database , and the need to make this possible has influenced the design of XQuery throughout its data that must represent results as XML, to query XML stored inside or outside the database, or to span relational and XML sources. For queries based only on relational data, SQL and the consumer of a web message often needs to put data into a relational database. For instance, suppose a consulting company needs to represent a set of projects and the companies for whom the projects are being done. In a relational database, this might be represented by the following tables: Project Relational Database Table Customer Relational Database Table In SQL, if we want to see the projects associated with each customer, we
Database Scale-Out Strategies for Web Apps Scaling web applications and databases can be quite complex load to avoid major redesigns in the future. These plans usually need to include a database scale-out strategy. Scaling web applications and databases can be quite complex depending on the more complex approach is scaling-out. The basic idea is to partition data across several database servers and therefore splitting the load of the application across multiple servers. While scaling out web servers can be done quite easily, properly scaling out database servers is far more challenging and happens to be the focus of this article. Scaling Out Database Servers Both SQL Server 2005 and 2008 natively offer a few options to scale out effective way to scale out databases, which also is not directly linked to any particular database vendor. This strategy is called Data-Dependent Routing (DDR). On the diagram above, you can received by the application server and routed appropriately to be processed by the NJ Customers database. Data-Dependent Routing (DDR) Data-dependent routing in its most elementary form allows software architects multiple databases in a way known only to the underlying application. So, the application receives database requests and appropriately routes them to the right databases for processing. Although this approach is
Database diagram suppport objects cannot be installed because. . . When I am trying to create database diagram, I am receiving the following message: << Database diagram suppport objects cannot be installed because this database does not have a valid ownr.To continue , first use the files page of the database Properties dialog box or the alter authorization statement to set the database owner to valid login, then add the database diagram supports object.> > can some help! Solution- In SQL Server Management Studio do the following: • Right Click on your database, choose properties • Go to the Options • In the Dropdown at right labeled "Compatibility Level" choose