Hi
I am running a large number of simulations via a webservice using the multicontext dll. When I run the simulations for a while the number of ctxtxx folders grow and since my runs have a lot data, they each take up a lot of space.
Is there a way of deleting the run data after I have had the opportunity to copy it into a database (i.e. using C# or something similar)
Many thanks
Phil
deleting runs with multicontext dll
-
- Super Administrator
- Posts: 4621
- Joined: Wed Mar 05, 2003 3:10 am
Re: deleting runs with multicontext dll
If you are using C#, the easiest thing to do is just use an API delete function.
http://msdn.microsoft.com/en-us/library ... elete.aspx
http://msdn.microsoft.com/en-us/library ... elete.aspx
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Re: deleting runs with multicontext dll
Many thanks
Phil
Phil
Re: deleting runs with multicontext dll
If you indicate wantcleanup>0 when you make the call to create the context, this should be taken care of automatically, as long as you delete the context when you're done with it.
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/