当前位置: 技术问答>java相关
大家来看这一句shell,如何不能生成指定的文本文件ip.txt?急!
来源: 互联网 发布时间:2015-05-24
本文导语: Private Sub Command1_Click() rt = Shell("ipconfig >c:dialip.txt") End Sub | Private Sub Command1_Click() Dim rt As Double Dim textline As String textline = "ipconfig >c:dialip.txt" Open "c:dialip.bat" For Output As #1 Print #1, textline Close...
Private Sub Command1_Click()
rt = Shell("ipconfig >c:dialip.txt")
End Sub
rt = Shell("ipconfig >c:dialip.txt")
End Sub
|
Private Sub Command1_Click()
Dim rt As Double
Dim textline As String
textline = "ipconfig >c:dialip.txt"
Open "c:dialip.bat" For Output As #1
Print #1, textline
Close 1
rt = Shell("c:dialip.bat", vbNormalFocus)
End Sub
我一试过了,能成功的。
不过你把帖子放错地方了,下次可不要发错,否则没人回答的。
Good Luck !
Dim rt As Double
Dim textline As String
textline = "ipconfig >c:dialip.txt"
Open "c:dialip.bat" For Output As #1
Print #1, textline
Close 1
rt = Shell("c:dialip.bat", vbNormalFocus)
End Sub
我一试过了,能成功的。
不过你把帖子放错地方了,下次可不要发错,否则没人回答的。
Good Luck !