List Info

Thread: deleting locked files using vb




deleting locked files using vb
country flaguser name
United States
2008-03-13 03:46:12

hi, im developing an application that will verify every file that a
user will copy on his/her flashdrive or any usb storage device. The
significance of this is that it can block potential malware who will
try to mutate on the usb storage device... the problem is, i cannot
delete a certain executable that is copied on the flashdrive because
the malware process has locked it... i would like to ask if anyone out
there has a code that can determine which process have locked a
certain file which refuses to be deleted.

a software called FreeFile has this ability but obviously, i cannot
get its code so if anyone out there knows how the software did it, it
is greatly appreciated, btw it's my thesis... thanks!

__._,_.___
.

__,_._,___
Re: deleting locked files using vb
user name
2008-03-13 22:43:57

Hi,
Through the code execute a command like this
del /f <filename>
I think this will work. if the file is hidden use
del /f /ah <filename>

jacklogan27 < jacklogan27%40yahoo.com">jacklogan27yahoo.com> wrote:
hi, im developing an application that will verify every file that a
user will copy on his/her flashdrive or any usb storage device. The
significance of this is that it can block potential malware who will
try to mutate on the usb storage device... the problem is, i cannot
delete a certain executable that is copied on the flashdrive because
the malware process has locked it... i would like to ask if anyone out
there has a code that can determine which process have locked a
certain file which refuses to be deleted.

a software called FreeFile has this ability but obviously, i cannot
get its code so if anyone out there knows how the software did it, it
is greatly appreciated, btw it's my thesis... thanks!

---------------------------------
Why delete messages? Unlimited storage is just a click away.

[Non-text portions of this message have been removed]

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )