【发布时间】:2014-11-22 18:02:53
【问题描述】:
我试图在 vb.net 中使用 shell 函数来运行程序,然后在其他地方写入/导出结果,它适用于 win8,但不适用于 XP !命令行打印这个错误
'C:\Documents' 未被识别为内部或外部命令, 可运行的程序或批处理文件。 按任意键继续 。 . .
Dim save as String="C:\exported.txt"
Dim command As String = tempPath & "app.exe -f " & IO.Path.GetTempPath & " -o " & save & " & pause"
shell("cmd /c " & command, AppWinStyle.NormalFocus, True)
【问题讨论】:
-
在你的程序的 shell(... 行中打断,然后看看命令中的内容。把它贴在这里。