VB 行command line(cmd) run java program

2007-03-04 12:58 am
我想在vb.net 行java program

我寫左個run.exe
入面寫左abc 係個java program
@=============
java abc file:test.avi
cmd.exe
@=============
咁個run.exe 一行就會行個java

在vb.net入面就咁call
Dim p As Process = Process.Start("run.exe")
p.WaitForExit()

行到...
不過我想行唔同avi file
就唔知點先可以pass d parameter 入去個run.exe 入面

之後我想寫一個class 想直接在vb.net 入面行command line



請問有冇高手出手相助?

回答 (1)

2007-03-04 8:12 am
✔ 最佳答案
你將你個行vb.net程式改成
Dim p As New Process
p.StartInfo.FileName = "run.exe"
p.StartInfo.Arguments = "命令參數"
p.Start()
就可以


收錄日期: 2021-04-13 13:37:09
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20070303000051KK03217

檢視 Wayback Machine 備份