Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old July 13th, 2007, 08:58 PM
Newbie
 
Join Date: Jul 2007
Posts: 1
Default Import SPF via Script

Hi folks; my first post. I'm a total DB2 newbie who works as a Packager. I've created a package that installs DB2 (old version which I can find out if need be) along with some other apps. I'm trying to import an SPF file as part of the package to pre-populate some DB connection info; it's easy to do via the Configuration Client GUI but I need to do it via the command line. Any ideas? Any help is appreciated.
Reply
  #2  
Old August 18th, 2008, 10:48 PM
Newbie
 
Join Date: Aug 2008
Posts: 1
Default

VBS Script

Option Explicit
Dim objShell
Set objShell = CreateObject("WScript.Shell")
objShell.Run "%comspec% /c C: & cd \ & cd program files\sqllib\bin & db2cfimp.exe db2connect.spf"
Reply
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles