Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista file management

Vista Tutorial - Is it possible to specify that a directory can be deleted even if in use?

Reply
 
Old 05-21-2008   #1 (permalink)
Newbie


Join Date: May 2008
Vista Home Premium 64 bit
 
 

Is it possible to specify that a directory can be deleted even if in use?

I'm trying to do web application development on my Vista machine. My web server has a deploy directory, into which I deploy a folder with my code. I use a build service called ANT to compile my code, delete the old folder, and move the new folder in.

Meanwhile, my Application server is monitoring the deploy directory, and does a hot redeployment when it sees the code change.

This works great on my Linux box... but Vista seems to think that the Application server is using the folder, and that nobody else should be able to delete it. ANT fails when I try to redeploy the code while the server is running. I can shut down the app server, deploy the code, restart, and it works fine.

Is there any way to specify that Windows should allow other processes to modify a directory? Permissions? A service I can turn off? I don't care how it happens exactly

I appreciate any help!

My System SpecsSystem Spec
Old 05-27-2008   #2 (permalink)
Justin Martin [MSFT]
Guest


 
 

RE: Is it possible to specify that a directory can be deleted even if

You'll probably want to pose this question to the web app that is holding a
lock on the file. I would suppose you could work around the issue by
stopping the web server service and then restarting it. This is intentional
to protect applications that rely on files on the system and are in the
process of using them.

Justin Martin
Windows Experience - Find & Organize

"quaidbrown" wrote:
Quote:

>
> I'm trying to do web application development on my Vista machine. My
> web server has a deploy directory, into which I deploy a folder with my
> code. I use a build service called ANT to compile my code, delete the
> old folder, and move the new folder in.
>
> Meanwhile, my Application server is monitoring the deploy directory,
> and does a hot redeployment when it sees the code change.
>
> This works great on my Linux box... but Vista seems to think that the
> Application server is using the folder, and that nobody else should be
> able to delete it. ANT fails when I try to redeploy the code while the
> server is running. I can shut down the app server, deploy the code,
> restart, and it works fine.
>
> Is there any way to specify that Windows should allow other processes
> to modify a directory? Permissions? A service I can turn off? I don't
> care how it happens exactly
>
> I appreciate any help!
>
>
> --
> quaidbrown
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Creating a list of files that have been deleted from or added to a directory PowerShell
How do I restore a deleted email directory Vista mail
Setting up a directory and moving a file into that directory from Vista General
Setting up a directory and moving a file into that directory from Vista General
Temp Directory acts like media directory Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46