I'm trying to use cmiexp with a response file and a command line
argument.
Here's my response file (importsld.rsp):
dbo LOCAL /ri
dbi %1
dbc
exit
Here's the command line:
d:\windowsembedded\utilities\cmiexp @importsld.rsp porttalk.sld
And here's the output; it doesn't seem to like the %1 parameter?
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
CMI Explorer version 3.14.620 (CMI revision 578)
Copyright (C) 1999-2001 Microsoft Corp. All Rights Reserved.
Platform GUID : {B784E719-C196-4DDB-B358-D9254426C38D}
Platform : (not in database)
Server : WAIBELXPD
Database : MantisSQLDB
Generation : {5836703C-51AD-4419-A8B2-0A0119E66BF8}
Open mode : ReadImport (1)
Error 9004 (0x232C) in "CmdDBImport": Syntax error
Error in command: "dbi %1" [dbi]
From: "Andy Allred [MS]" <
[email protected]>
Subject: Re: command line support
Date: Mon, 18 Jul 2005 12:03:08 -0700
Newsgroups: microsoft.public.windowsxp.embedded
Hi Larry.
Yes, this is possible, using cmiexp.wsf which is in the Value Add
folder
of
the CD #1 to install the Embedded suite of tools.
Unfortunately, that script file is not very intuitive, it does have a
lot
of
remarks in the script though to help.
On my team, Nandini has actually started to develop some documentation
lately to walk you through the end to end process to import a
component
from
the command line, add it to an SLX, resolve dependencies and build it.
Most
of that process will be done via an answer file.
I'll ask Nandini (or someone else on the team) to post a blog entry
with
this information when she's got some spare cycles.
Thanks.
--
Embedded team blog:
http://blogs.msdn.com/embedded/
This posting is provided "AS IS" with no warranties, and confers no
rights.
I'm starting into the process of releasing components and target
designs
through our internal SCM group. They want everything to be done via
the
command line so batch files can be used to log the operations. Is
there
any
way to import a component into the database via the command line and
to
generate a target build via the command line? Thanks!