当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

    摘要: ... ......
    摘要: 是把listbox1中的内容移到listbox2中 if listbox1.selected[i] then begin listbox2.items.add (listbox1.items[i]); listbox1.items.delete(listbox1.itemindex); ......


shell参数问题HELP ME

我在VB里用SHELL调用一个DOS下运行的程序,该程序在DOS下运行时需问答式   顺序输入3个参数,我直接把参数跟在EXE文件后面,参数不能直接自动输入,请帮助!  
   
  VB代码:  
  shell   xx.exe   参数1   参数2   参数3,vbnormal  
   
  DOS窗口显示:  
  xx.exe    
  请输入参数1:  
  ……  
  ……

NO.1   作者: junwhj

shell   "xx.exe   参数1   参数2   参数3",vbnormal

NO.2   作者: junwhj

Private   Declare   Function   WinExec   Lib   "kernel32"   Alias   "WinExec"   (ByVal   lpCmdLine   As   String,   ByVal   nCmdShow   As   Long)   As   Long  
   
  WinExec   "xx.exe   参数1   参数2   参数3",0  
   
 

NO.3   作者: wgku

str1="start.exe   +   你的命令和参数"  
  shell   str1,1  
   
 

NO.4   作者: bestofbest

没遇到这样的问题  
   
  我用的Shell   "c:\win\ipconfig.exe   /all",   vbNormalFocus  
  很成功啊  
  你复制到你的程序中看有没有用  
  要不就是你要调的程序有问题  
  不是代码的问题  
  参数有什么要求,是否要带“/”   是否要带“,”,或者是空格  
  搞清楚你要用的程序的参数格式才行  
   
 


    摘要: 请问,在sqlserver中怎样用sql语句得到某备份介质中备份集的列表 ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE