C#写的程序在网络盘上执行会报告安全问题,并且不能继续执行否写内容,需要如何处理一下! webform下的确认一下asp.net这个帐号的权限 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 可以建立ipc$ 连接再访问该盘Process dos = new Process(); dos.StartInfo.WorkingDirectory = @"C:\";dos.StartInfo.FileName = "net.exe";dos.StartInfo.Arguments = @"use \\192.168.0.1\IPC$ "abcdefg"" + "\u0022 /user:adminstrator";dos.StartInfo.UseShellExecute = false;dos.StartInfo.RedirectStandardOutput = true;dos.StartInfo.CreateNoWindow = true;dos.Start ();然后再执行你的FileStream input = new FileStream("z:\\a.txt", FileMode.Open, FileAccess.Read, FileShare.Read);机器IP为192.168.0.1 用户名:administrator 密码为:abcdefg \u0022是空格,如果仅知道guest密码也是可以访问的. xiongchen(二氧化鬼):程序已经写好了,放到X:\App\XX.exe[X:为网络连接盘]如果XX.exe拷贝到本机执行没有问题,否则报错! 类似QQ游戏房间桌子控件 一个SQL问题,请大家看看 水晶报表导出时遇到的怪异问题,求助~~ 这样构造函数错在哪里? 谁可以解决问题,我给1万 用正则表达式获取字符串 如何运用office编程进行格式转换 C# 多线程和界面交互问题 很菜的问题,gz,up统统给分 请问,如何做文件下载? 关于“数字瀑布”的问题 object是个什么东东,放在里面的图片信息值为system.array类型为byte的数组怎了不好byte[]出来
Process dos = new Process();
dos.StartInfo.WorkingDirectory = @"C:\";
dos.StartInfo.FileName = "net.exe";
dos.StartInfo.Arguments = @"use \\192.168.0.1\IPC$ "abcdefg"" + "\u0022 /user:adminstrator";
dos.StartInfo.UseShellExecute = false;
dos.StartInfo.RedirectStandardOutput = true;
dos.StartInfo.CreateNoWindow = true;
dos.Start ();
然后再执行你的
FileStream input = new FileStream("z:\\a.txt", FileMode.Open, FileAccess.Read, FileShare.Read);机器IP为192.168.0.1 用户名:administrator 密码为:abcdefg
程序已经写好了,放到X:\App\XX.exe[X:为网络连接盘]
如果XX.exe拷贝到本机执行没有问题,否则报错!