Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共1 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:代码失效,如何解决?

1楼
lin98 发表于:2024/3/11 9:37:00
Dim Proc As New Process 
proc.StartInfo.FileName = "cmd.exe"
proc.StartInfo.CreateNoWindow = True
proc.StartInfo.WorkingDirectory = "D:\MY\bin"
MsgBox(0)
proc.StartInfo.UseShellExecute = False
proc.StartInfo.RedirectStandardInput = True
proc.StartInfo.RedirectStandardOutput = True
proc.StartInfo.RedirectStandardError = True
proc.Start()
'proc.Standardlnput.WriteLine("mysql -uroot -proot")
MsgBox(1)
proc.StandardInput.WriteLine("t33")
MsgBox(2)
Dim s As String = FileSys.ReadAllText("D:\BF\t33-5.sql")
For Each s1 As String In s.replace(vbcr, "").split(vblf)
   proc.StandardInput.WriteLine(s1)
Next
proc.Close()
MsgBox(3)

上面代码:还原MYSQL数据库,执行没报错,但也没有还原,如何解决?
[此贴子已经被作者于2024/3/11 16:27:26编辑过]
共1 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .01563 s, 2 queries.