Under NT and 2000 use 'rd /s /q drive:\path\directory' to remove a 
directory and all it's subdirectories and files.

Dan

Jay Southard wrote:

> I would think that the easiest solution would be to add another line to 
> you remove script. Something along the lines of (assumes domain.com is 
> located at c:\imail\domain.com):
> 
>  
> 
> "echo y |del c:\imail\domain.com\john.doe\*.*" (sans quotes)
> 
>  
> 
> This should cleanout that folder. If you get a hold of deltree (i just 
> noticed NT4 doesn't have it) You could use:
> 
>  
> 
>  "echo y |deltree c:\imail\domain.com\john.doe"
> 
>  
> 
>  and be rid of the whole directory.
> 
>  
> 
> Jacob
> 
>     -----Original Message-----
>     From: [EMAIL PROTECTED]
>     [mailto:[EMAIL PROTECTED]]On Behalf Of Kris McElroy
>     Sent: Thursday, March 28, 2002 12:12 PM
>     To: [EMAIL PROTECTED]
>     Subject: [IMail Forum] Adduser/Orphans
> 
>     We are using Imail 6.06 with RODOPI Billing Software.  We use the
>     Registry for storing user accounts.  The problem we are having is
>     this:  When a user signs up say [EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]> Rodopi will FTP this script to the
>     server (C:\Imail\adduser -h domain.com -u john.doe -n "" -P pass). 
>     Which works all fine and dandy.  Now say john.doe wants to cancel
>     his email account.  Rodopi will FTP this script to the server
>     (C:\Imail\adduser -kill -u john.doe -h domain.com).  Now the problem
>     is that lets say that he had email in his account and another person
>     came along and wanted to signup for Email Access and the oddly
>     picked the username john.doe?  So now when the script is FTP'd do
>     the Imail Server it puts the new information in, but keeps the OLD
>     john.doe directory structure, hence he gets email that was in the
>     directory.  Does anyone have any suggestions to fix this with the
>     command line interface?  We have some domains that have 300+ orphan
>     accounts.
> 
>      
> 
>      
> 
>      
> 
>     Thanks,
>      
> 
>      
> 
>     Kris McElroy
>     [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>      
>     Internet Systems Engineer
>     Duracom, INC.
>     www.duracom.net <http://www.duracom.net>
> 


-- 

Dan Shadix
Computer Network Manager
Terry Reilly Health Services


Please visit http://www.ipswitch.com/support/mailing-lists.html 
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/imail_forum%40list.ipswitch.com/

Please visit the Knowledge Base for answers to frequently asked
questions:  http://www.ipswitch.com/support/IMail/

Reply via email to