Dim proc As Process = New Process
proc.StartInfo.FileName = "C:\Program Files\IBM\SQLLIB\BIN\db2cmd.exe"
proc.StartInfo.Arguments() = " connect to myDB"
proc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
proc.Start()
But still can not hide window :(...
thanks for your helps....
in my application I copy db2 tables by using db2 commands.
for export or import I need to know the directory, the path of IBM DB2 program because export command
export from C:\progra~1\IBM\DB2\SQLLIB\....
I dont want to ask the user select the directory of your IBM DB2 program.
I want to know...
it is not possible because I call .txt file not an .exe file from batch file.
I want to ask another question.
For example an error occurred while my application running.On command prompt window error will be written.is it possible to show error in my application? because if I hide command prompt...
I created a txt file.I wrote my db2 commands in it.Then I created batch.bat file contains :
db2cw db2 -td! -f "C:\copy.txt" in it.
Then I call my batch file from my application.
Dim psInfo As New System.Diagnostics.ProcessStartInfo("D:\batch.bat")
psInfo.WindowStyle = ProcessWindowStyle.Hidden
System.Diagnostics.Process.Start(psInfo)
I call .bat file from my vb.net application.But I dont know How to get the cmd prompt to run in hidden mode when calling a .bat file? help me please...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.