koba Tirth

koba Tirth

  • NA
  • 50
  • 21.1k

Shell function some issues ??

Jun 28 2017 1:39 AM
 
 
Some issuse run shell function
 
shell function thoughtput is more
 
so how can fix it?
 
Thanks. 
 
 
 
 string sqlStr ="\\d:koba -ifile=\\d:koba\test.xml -header=0 -ofile=\\d:koba Query1="select * from tabelname where fieldname= 'value' and field between 'value1' and 'value2' ""
 
int ProcId = Shell(sqlStr, AppWinStyle.MaximizedFocus, True) 
 
Dim word As New Microsoft.Office.Interop.Word.ApplicationClass()
word.Visible = True
word.Documents.Open(@"\\d:koba\test." & ".xml").Activate()
word.Run("Catalogue_Replace_Hp")
word.Documents.Save()
word.Quit()
 

Answers (4)