System.Diagnostics.Process运行ARJ提示参数异常

System.Diagnostics.Process运行ARJ提示参数错误?
VB.NET code

        Dim p As System.Diagnostics.Process = New System.Diagnostics.Process()
        p.StartInfo.FileName = "arj.exe"            '需要启动的程序名 
        p.StartInfo.Arguments = "a c:\dell" '启动参数 "
        p.Start() '启动       
        If p.HasExited Then
            p.Kill()
        End If



------解决方案--------------------
先试下在命令提示符下能否正确执行的
------解决方案--------------------
VB.NET code
 Dim p As System.Diagnostics.Process = New System.Diagnostics.Process()
        p.StartInfo.FileName = "WinRAR.exe"            '需要启动的程序名 
        p.StartInfo.Arguments = "a c:\dell" '启动参数 "
        p.Start() '启动       
        If p.HasExited Then
            p.Kill()
        End If

------解决方案--------------------
上面的代码可以正确的执行
------解决方案--------------------
压缩:
winexec('cmd /c d:\arj.exe a -jm c:\1.arj d:\comdebug.exe', SW_SHOW);
可能对你有帮助~
------解决方案--------------------
既然都用了VB.NET了,那就用Shell函数好了
------解决方案--------------------
up
------解决方案--------------------
VB.NET code

' -------- 试试这个代码,看是否可用?
Process.Start("arj.exe", "a test c:\dell\*.*")
' -------- 下面是楼主自己的代码 ----------
       Dim p As System.Diagnostics.Process = New System.Diagnostics.Process()
        p.StartInfo.FileName = "arj.exe "            '需要启动的程序名 
        p.StartInfo.Arguments = "a test c:\dell\*.*"         '启动参数
        p.Start() '启动       

        If p.HasExited Then
            p.Kill()
        End If

------解决方案--------------------
帮你顶下,我看不懂,菜鸟。
------解决方案--------------------
试下下面的:
VB.NET code
Dim p As System.Diagnostics.Process = New System.Diagnostics.Process()
p.StartInfo.FileName = "cmd.exe"
p.StartInfo.Arguments = " /c " & " arj.exe a test c:\dell\*.*"
' " /c "后面跟的是命令提示符中输入的内容
p.Start() '启动       
If p.HasExited Then
            p.Kill()
End If

------解决方案--------------------
感觉还是没有调用到 arj.exe 的问题,系统环境变量中的 PATH 路径设置的对不对啊?
------解决方案--------------------
探讨
你好,试过了,屏幕一闪而过,但是没有生成arj文件