You are close. Looks like your .Application variable is wrong. Try this, it
works for me as is.

rusty
        Set Executor=Server.CreateObject("ASPExec.Execute")
        Executor.Application = "c:\imail\adddomain.exe"
        Executor.Parameters = "-h domain.com -i VIRTUAL"
        strResult = Executor.ExecuteDosApp

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of krishna
Sent: Wednesday, June 12, 2002 3:30 PM
To: [EMAIL PROTECTED]
Subject: [IMail Forum] Help on how to Automate creation of Domain from
ASP Script


Hi All

I am using ASPexec From www.serverobjects.com to
executes adddomain.exe for creating a domain on the
fly from ASP Script

Following is the code block which i am using

  varParams = " c:\imail\adddomain.exe -h rkhost.com
-i VIRTUAL"
  Set Executor =
Server.CreateObject("ASPExec.Execute")
  Executor.Application = "cmd"
  Executor.Parameters = varParams
  Executor.ShowWindow = True
  strResult = Executor.ExecuteDosApp

Execution of the script is happening with out any
error -- but domain is not geeting created under
imail.

Tried out writing "c:\imail\adddomain.exe -h
rkhost.com -i VIRTUAL" to a batch file and supplied
the path of the same as parameter to the application
--this also did'nt helped in any way for domain
creation.

Can any one throw some light and help me in solving
the problem.

Thank You all in advance.

Kri

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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/
---
[This E-mail scanned for viruses by WebSavannah.com's Virus Scanner]



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