close (3,197)


c# - How to check for file lock?

c# - How to check for file lock?

This question already has answers here:Is there a way to check if a file is in use?(18 answers) Closed 3 years ago.Is there any way to check whether a fi…


regex - What are good regular expressions?

I have worked for 5 years mainly in java desktop applications accessing Oracle databases and I have never used regular expressions. Now I enter Stack Overflow and I see a lot of questions about them;…


Send messages to program through command line

I have this program, we'll call it Host. Host does all kinds of good stuff, but it needs to be able to accept input through the command line while it's running. This means it has to somehow send its…


How do you kill all current connections to a SQL Server 2005 database?

I want to rename a database, but keep getting the error that 'couldn't get exclusive lock' on the database, which implies there is some connection(s) still active. How can I kill all the connections t…


How can I determine whether a specific file is open in Windows?

Closed. This question is off-topic.It is not currently accepting answers. Want to improve this question? Update the question so it's…


Changing Ctrl+Tab behavior for moving between documents in Visual Studio

Is it possible to change how Ctrl+Tab and Shift+Ctrl+Tab work in Visual Studio? I have disabled the popup navigator window, b…


What is the best way to connect and use a sqlite database from C#

I've done this before in C++ by including sqlite.h but is there a similarly easy way in C#?…


bash - Getting ssh to execute a command in the background on target machine

This is a follow-on question to the How do you use ssh in a shell script? question. If I want to execute a command on the remote machine that runs in the background on that machine, how do I get the s…


Regex to match all HTML tags except<p> and</p>

I need to match and remove all tags using a regular expression in Perl. I have the following:<\\??(?!p).+?> But this still matches with the closing</p> tag. Any hint on how to match with the clos…



performance - Any way to write a Windows.bat file to kill processes?

So every time I turn on my company owned development machine I have to kill 10+ processes using the task manager or any other process management app just to get decent performance out of my IDE. Yes,…




how example not button event open window jquery from and