command line support

  • Thread starter Thread starter Larry Waibel
  • Start date Start date
L

Larry Waibel

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!
 
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.
 
Okay, thanks! I'll take a look at the script. How's the best way to know when
the blog entry has been posted?

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.

Larry Waibel said:
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!
 
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.

Larry Waibel said:
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!
 
http://blogs.msdn.com/embedded/archive/2005/07/18/440181.aspx

-andy
--
Embedded team blog: http://blogs.msdn.com/embedded/

This posting is provided "AS IS" with no warranties, and confers no rights.



Larry Waibel said:
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]

Andy Allred said:
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.

Larry Waibel said:
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!
 
Thanks for the location; read it but still doesn't answer my %1 syntax error
problem.

From: "Andy Allred [MS]" <[email protected]>
Subject: Re: command line support
Date: Mon, 18 Jul 2005 18:41:38 -0700
Newsgroups: microsoft.public.windowsxp.embedded

http://blogs.msdn.com/embedded/archive/2005/07/18/440181.aspx

-andy
--
Embedded team blog: http://blogs.msdn.com/embedded/

This posting is provided "AS IS" with no warranties, and confers no rights.

Larry Waibel said:
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]

Andy Allred said:
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!
 
Paste your answer file here.
-andy

--
Embedded team blog: http://blogs.msdn.com/embedded/

This posting is provided "AS IS" with no warranties, and confers no rights.



Larry Waibel said:
Thanks for the location; read it but still doesn't answer my %1 syntax
error
problem.

Andy Allred said:
From: "Andy Allred [MS]" <[email protected]>
Subject: Re: command line support
Date: Mon, 18 Jul 2005 18:41:38 -0700
Newsgroups: microsoft.public.windowsxp.embedded

http://blogs.msdn.com/embedded/archive/2005/07/18/440181.aspx

-andy
--
Embedded team blog: http://blogs.msdn.com/embedded/

This posting is provided "AS IS" with no warranties, and confers no
rights.

Larry Waibel said:
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!
 
I'm not sure what you were telling me to do? What 'answer file' are you
referring to and where is 'here'? Thanks!
 
Oops, nevermind I see your earlier mail with the response file info i was
looking for.<grin>

I forwarded the info on for someone to look at and should respond to this
thread with more info.

Thanks Larry.
Andy

--
Embedded team blog: http://blogs.msdn.com/embedded/

This posting is provided "AS IS" with no warranties, and confers no rights.



Larry Waibel said:
I'm not sure what you were telling me to do? What 'answer file' are you
referring to and where is 'here'? Thanks!

From: "Andy Allred [MS]" <[email protected]>
Subject: Re: command line support
Date: Tue, 19 Jul 2005 08:26:15 -0700
Newsgroups: microsoft.public.windowsxp.embedded

Paste your answer file here.
-andy

--
Embedded team blog: http://blogs.msdn.com/embedded/

This posting is provided "AS IS" with no warranties, and confers no
rights.
 
Larry,

This is not CMIExplorer problem. You just forgot that cmiexp is WSH script :-)

Run the following command:
cscript.exe CMIEXP.WSF //B //Nologo "@importsld.rsp porttalk.sld"
And it should do it.

(if you have the default handler for WSF set up in registry you won't need the header of the command above).

Regards,
KM
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.

Larry Waibel said:
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!
 
Andy, Nandini,

Nice Blog! :-)
It would definitely be very helpful to have some docs about the CMI and CMI Explorer.

Thanks,
Konstantin

PS. I wish I knew the Config.Activate method is the one I have always missed from my CMIExplorer scripts to be able to build my
configurations here. :-(
http://blogs.msdn.com/embedded/archive/2005/07/18/440181.aspx

-andy
--
Embedded team blog: http://blogs.msdn.com/embedded/

This posting is provided "AS IS" with no warranties, and confers no rights.



Larry Waibel said:
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!
 
So I need to wrap the response file and all params in double-quotes? I ended up getting
around it by setting an environment variable and passing it in that way :-)

From: "KM" <konstmor@nospam_yahoo.com>
Subject: Re: command line support
Date: Fri, 22 Jul 2005 23:30:47 -0700
Newsgroups: microsoft.public.windowsxp.embedded

Larry,

This is not CMIExplorer problem. You just forgot that cmiexp is WSH script :-)

Run the following command:
cscript.exe CMIEXP.WSF //B //Nologo "@importsld.rsp porttalk.sld"
And it should do it.

(if you have the default handler for WSF set up in registry you won't need the header of the command above).

Regards,
KM
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!
 
Back
Top