delete (7,980)


How do I delete a file which is locked by another process in C#?

How do I delete a file which is locked by another process in C#?

I'm looking for a way to delete a file which is locked by another process using C#. I suspect the method must be able to find which process is locking the file(perhaps by tracking the handles, althoug…


Why am I getting a double free error with realloc()?

I've tried to write a string replace function in C, which works on a char*, which has been allocated using malloc(). It's a little different in that it will find and replace strings, rather than ch…


sql - Drop all tables whose names begin with a certain string

How can I drop all tables whose names begin with a given string? I think this can be done with some dynamic SQL and the INFORMATION_SCHEMA tables.…


version control - How to find untracked files in a Perforce tree?(analogue of svn status)

Anybody have a script or alias to find untracked(really: unadded) files in a Perforce tree? EDIT: I updated the accepted answer on this one since it looks like P4V added support for this in the Januar…



Insert Update stored proc on SQL Server

I've written a stored proc that will do an update if a record exists, otherwise it will do an insert. It looks something like this: update myTable set [email protected], [email protected] where [email protected] if @@rowcount…


c++ - Can placement new for arrays be used in a portable way?

Is it possible to actually make use of placement new in portable code when using it for arrays? It appears that the pointer you get back from new[] is not always the same as the address you pass in(5.…


c# - How do you place a file in recycle bin instead of delete?

Programmatic solution of course...…


sql server - How can I remove duplicate rows?

What is the best way to remove duplicate rows from a fairly large SQL Server table(i.e. 300,000+ rows)? The rows, of course, will not be perfect duplicates because of the existence of the RowID identi…


Delete all but the most recent X files in bash

Is there a simple way, in a pretty standard UNIX environment with bash, to run a command to delete all but the most recent X files from a directory? To give a bit more of a concrete example, imagine s…


Delete Amazon S3 buckets?

I've been interacting with Amazon S3 through S3Fox and I can't seem to delete my buckets. I select a bucket, hit delete, confirm the delete in a popup, and... nothing happens. Is there another tool th…




how from remove file example all not and with update