以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  登录提示数据源  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=118645)

--  作者:有点甜
--  发布时间:2018/5/8 8:44:00
--  

试试这样,看信不信

 

Dim p As new Process()
p.StartInfo.FileName = "cmd.exe"
p.StartInfo.UseShellExecute = False \'关闭Shell的使用
p.StartInfo.RedirectStandardInput = True \'重定向标准输入
p.StartInfo.RedirectStandardOutput = True \'重定向标准输出
p.StartInfo.RedirectStandardError = True \'重定向错误输出
p.StartInfo.CreateNoWindow = True \'设置不显示窗口
p.Start()
p.StandardInput.WriteLine( "net use * /del /y")
p.StandardInput.WriteLine( "net use \\\\192.168.1.240 2014 /user:administrator")
p.StandardInput.WriteLine("exit")
system.threading.thread.sleep(1000)


--  作者:有点甜
--  发布时间:2018/5/8 8:45:00
--  
你在 【开始】-> 【运行】-> 输入cmd,弹出的窗口,输入 net use \\\\192.168.1.240 2014 /user:administrator 后提示什么?
--  作者:有点甜
--  发布时间:2018/5/8 9:26:00
--  

你输入的明显不对,请直接复制粘贴到cmd窗口去执行

 

net use \\\\192.168.1.240 2014 /user:administrator


--  作者:有点蓝
--  发布时间:2018/5/8 15:57:00
--  
右键菜单选“粘贴”
--  作者:有点蓝
--  发布时间:2018/5/8 16:19:00
--  
要在客户端电脑执行这个命令。另外客户端电脑IP是192.168.1.开头的吗
--  作者:有点蓝
--  发布时间:2018/5/8 16:31:00
--  
您数据源以及BeforeConnectOuterDataSource里确定都是连接240这个ip地址?
--  作者:有点甜
--  发布时间:2018/5/8 17:02:00
--  

1、没有发布的项目是否也是这样?只是发布后的项目才是这样?

 

2、没发布的项目、发布后的项目,是在同一台电脑上测试的吗?


--  作者:有点甜
--  发布时间:2018/5/8 17:29:00
--  

做一个定时器,定时执行下面的代码

 

Dim p As new Process()
p.StartInfo.FileName = "cmd.exe"
p.StartInfo.UseShellExecute = False \'关闭Shell的使用
p.StartInfo.RedirectStandardInput = True \'重定向标准输入
p.StartInfo.RedirectStandardOutput = True \'重定向标准输出
p.StartInfo.RedirectStandardError = True \'重定向错误输出
p.StartInfo.CreateNoWindow = True \'设置不显示窗口
p.Start()
p.StandardInput.WriteLine( "net use * /del /y")
p.StandardInput.WriteLine( "net use \\\\192.168.1.240 2014 /user:administrator")
p.StandardInput.WriteLine("exit")

 

http://www.foxtable.com/webhelp/scr/0657.htm

 

 


--  作者:有点甜
--  发布时间:2018/5/9 16:53:00
--  

是否连接的人数太多导致的?

 

http://www.foxtable.com/bbs/dispbbs.asp?BoardID=2&ID=118672&skin=0

 


--  作者:有点甜
--  发布时间:2018/5/9 16:58:00
--  
以下是引用nuoyan88在2018/5/9 16:55:00的发言:
我已经按照那个方法改了。改成了50,目前使用的不到50个人

 

重新设置一个共享文件夹,重新设置项目的数据源,然后测试是否有问题?