Just a couple of extra pointers:
1. It's probably better to invoke cscript.exe, rather than wscript.exe.
It's essentially a console version of the windows scripting host. As
such, it's standard and error output will integrate more nicely with
NAnt, and it should also avoid any dialogs appearing, which might
otherwise block your unattended NAnt script, waiting for a user
response.
2. Run cscript.exe from the command line, have a look at its usage
information and consider explicitly specifying some of the options. For
example, you can explictly force the scripting language using
//E:vbscript, rather than leaving the app to guess (I was stung by this
a few weeks ago, when a script that ran fine on my PC was consistently
failing on our build server).
Chris
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: 12 July 2007 08:27
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED];
nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] Launching VB script file
Don't think you can do this directly with NAnt. The simplest way is
probably to use the <exec> task to run WScript.exe and pass the .vbs
file in the arguments.
Cheers,
Bill
>From "Tim Mayert" <[EMAIL PROTECTED]>@lists.sourceforge.net
Sent by: [EMAIL PROTECTED]
11/07/2007 22:15
To
<nant-users@lists.sourceforge.net>
cc
Subject
[NAnt-users] Launching VB script file
Simple question I hope, but I have a .vbs file that I would like to
launch/run from NAnt what is the best way to handle this? Can the NAnt
script task work with plain VB Script - Not VB.NET? If it can not then
what is the best way to run a vbscript file?
Thanks,
Tim Mayert.
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________--
-----------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/____________________________________
___________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users
IMPORTANT
The information contained in this e-mail and any attachments is intended
for the addressee only
and may contain legally privileged or confidential information. If you
are not the intended
recipient you must not use, disclose, copy, distribute, alter, or take
any action in reliance
on the information and Avon Insurance plc will not accept liability for
any loss or damage howsoever
arising, directly or indirectly in reliance on it and gives no warranty
or representation as to its
accuracy or reliability. If you are not the addressee, please notify us
immediately on 01789 202121*
and delete the material from your computer and destroy any copies.
Avon Insurance plc reserves the right to monitor and record incoming and
outgoing email messages for
the purposes of investigating or detecting unauthorised use of its
system and ensuring its effective operation.
Avon Insurance plc will not accept liability for any loss or damage as a
result of any virus being passed on.
Avon Insurance plc (No. 209606).
Registered in England. Registered Office: Arden Street, Stratford upon
Avon, Warwickshire CV37 6WA.
Authorised and regulated by the Financial Services Authority.
A member of the NFU Mutual group of companies and the Association of
British Insurers.
*For security and training purposes, telephone calls may be recorded and
monitored.
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users