Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have a VB net 2003 application that does a shell cmd of 'dir' on one system, to an output file. That output file is then looped thru to create the same dir and file structure on another system, using System.IO.File.Create(FileToCreate) and System.IO.Directory.CreateDirectory(FileToCreate) commands.

 

I keep getting the error 'Not enough quota is available to process this command", on an NT 4 system.

 

Without modifying the virtual memory of the system that I am running on, (because this application might be used on any system besides just my test system), thru the control pannel and the quota tab on the disk, (actually the quota tab does not exist on a nt 4 system)...if there anything that I can do inside my program?

 

After every create, should I do some kind of wait, (what command to use to do this), to possibly allow the system to flush the pages itself, before I do the next create?

 

By putting the creates in a called sub, (instead of within the read loop), will this clear the pages?

 

Anything else...???

 

Thanks

 

Lou

Posted

Problem solved

 

Thanks for the input.

 

The problem was fixed by adding a 'Close', to the create file statements.....

System.IO.File.Create(FileToCreate).Close()

 

This would not have been a problem, if only dealing with a few files. I was creating over 100,000 files, (o blocks), at a time.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...