Connecting Tech Pros Worldwide Help | Site Map

Import SPF via Script

  #1  
Old July 13th, 2007, 08:58 PM
Newbie
 
Join Date: Jul 2007
Posts: 1
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.
  #2  
Old August 18th, 2008, 10:48 PM
Newbie
 
Join Date: Aug 2008
Posts: 1

re: Import SPF via Script


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