指定的路径不正确 [英] Path specified is not correct

查看:91
本文介绍了指定的路径不正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在控制台应用程序中指定本地系统和一台服务器的路径.我按如下所示进行了指定.

 var savePath ="\\\\ 149.223.26.33 \\ D:\\ Developers \\ muralim \\ TRW.HRM.Headcount_LMSFeed \\ Log \\ empps.txt";


            var filePath ="C:\\ Documents and Settings \\ aj99823 \\ Desktop \\ project \\ employeedetails1.txt"; 



但是程序抛出错误,指出路径的格式不正确.任何人都可以帮助我... ???

解决方案

在资源管理器中执行此操作,您会得到一个错误.原因是,要引用另一台计算机上的驱动器,必须具有


符号,如下所示:

 "   \\\\ 149.223.26.33 \\ D 

\\ Developers \\ muralim \\ TRW.HRM.Headcount_LMSFeed \\ Log \\ empps.txt";

像个白痴,我忘了删除这 :.立即排序.


i need to specify the path of my local system and one server in a console application.And i specified it like shown below.

var savePath = "\\\\149.223.26.33\\D:\\Developers\\muralim\\TRW.HRM.Headcount_LMSFeed\\Log\\empps.txt";


            var filePath = "C:\\Documents and Settings\\aj99823\\Desktop\\project\\employeedetails1.txt";



but the program is throwing error saying the path''s format spcified is not correct.can anyone plss help me...???

解决方案

If you tried to do this in explorer, you''d get an error. The reason is, to refer to the drive on another machine, you''d have to you the


sign, like this:

var savePath = "\\\\149.223.26.33\\D


\\Developers\\muralim\\TRW.HRM.Headcount_LMSFeed\\Log\\empps.txt";

[Edit]Like an idiot, I forgot to remove the :. Sorted now.


这篇关于指定的路径不正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆