Connecting Tech Pros Worldwide Help | Site Map

Import SPF via Script

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 13th, 2007, 07: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, 09: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 Search this Thread
Search this Thread:

Advanced Search


Popular Articles

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 220,989 network members.