unc

UNC access whilst using impersonation asp.net

不想你离开。 提交于 2019-12-11 11:07:39
问题 I am trying to have my ASP.net application access a UNC path, however I am getting file denied errors. If I try this where the application is on my local machine, it works, if I run it in the browser, where the application is deployed, it works fine. However when I try to access the website from my machine to my IIS box, which then in-turn accesses the file server, I can Access Denied errors. I've checked that ASP.Net is actually impersonatinh as me, and it seems to be that seems to be the

Application.Executablepath in C# has mixed separator characters

試著忘記壹切 提交于 2019-12-11 07:57:54
问题 I'm using someone else's code (licensed) on two different machines. On one machine, the Application.ExecutablePath returns the result the programmer must have expected, on the other it does not. Both are Windows 7 machines. On my machine, the Application.ExecutablePath returns something like: "C:\\Dir1\\Dir2\\Dir3/bin/Debug/APP.EXE" On the other machine, it returns "C:\\Dir1\\Dir2\\Dir3\\bin/Debug/APP.EXE" The programmer obviously expected the second return string, because the code does this:

UNC build path in Team build (TFS)

风格不统一 提交于 2019-12-11 06:49:03
问题 I am pretty new to TFS so I have this problem when I want to set a destination directory to my build. Every time I launch the build, it dramatically fails and says "couldn't find \xxxxxxx\yyyyy\zzzz". I think that my UNC path is wrong. Let's assume that my drop directory (destination directory) is "C:\Project\" and my computer name is "lemoos-PC", what would the equivalent of my path in UNC notation? I've tried these : \\lemoos-PC\C\Project\ \\lemoos-PC\C:\Project\ \\lemoos-PC\Project\ but

Java : How to access UNC location

眉间皱痕 提交于 2019-12-11 03:17:51
问题 same as title; how to access to UNC location in ShareFolder? URL uri = new URL("file:\\\\x.x.1.10\\myUNC"); File file = new File(uri); or URL uri = new URL("file://x.x.1.10/myUNC"); File file = new File(uri); also doesn't works. 回答1: Just: File f = new File("\\\\x.x.1.10\\myUNC"); 回答2: Using forward slashes ( / ) instead of backslashes with the file protocol will work to access a UNC location: URI uri = URI.create("file:////SERVER/some/path"); Be sure, however, not to call URI.normalize() or

Accessing a shared folder over a network in adobe air

拜拜、爱过 提交于 2019-12-11 03:13:42
问题 I'm trying to write to a shared folder on a windows network in AIR using the File class. I don't understand how to format the path to the shared folder. I get one of who errors with everything I've tried: "The specified folder does not exist" and "there is a parameter missing". The UNC path to access this folder from my computer is like this: \\localdev01\platefiles Here are the different path formats I've tried to access this folder: \\localdev01\platefiles /localdev01/platefiles file:/

Querying access to a UNC path on a remote machine via WMI

徘徊边缘 提交于 2019-12-10 23:37:45
问题 I want to find out if the remote host has r/w access to a network share. To start out I wanted to see if I could query the target host's ability to query the UNC path for info, ala var query = string.Format("select * from CIM_Directory where name = '{0}'", path); This works fine for local files, e.g. var path = @"c:\\Windows"; However, I can't figure out an appropriate way of querying a UNC path (e.g. \\foo\bar). The query always returns a blank set. I saw a related question about executing

How do I address a UNC path in Ruby on Windows?

扶醉桌前 提交于 2019-12-10 15:01:48
问题 I'm trying to access a UNC share via irb on Windows. In the Windows shell it would be \\server\share I tried escaping all of the backslashes. irb(main):016:0> Dir.entries '\\\\server\share' Errno::ENOENT: No such file or directory - \\server\share and using the IP address instead of the name irb(main):017:0> Dir.entries '\\\\192.168.10.1\share' Errno::ENOENT: No such file or directory - \\192.168.10.1\share 回答1: Try to escape '\' with another '\' Dir.entries('\\\\\\\\192.168.10.1\\\\share')

Windows service cannot access UNC path

佐手、 提交于 2019-12-10 13:03:01
问题 I have a windows service written in C# running on Windows Server 2012. The service is running as a domain user with permissions on the local machine and NTFS permissions to shared network resources on an Isilon SAN. I can access shared files and directories in Windows Explorer when logged on as this user with the following format: \\isilon\path\to\dir\ However, calls to System.IO.Directory.Exists() always return false. At first I thought it was this: http://support.microsoft.com/kb/827421

Convert windows path to UNC in Ruby

五迷三道 提交于 2019-12-08 08:08:18
问题 I'd like to convert the following PATH into a UNC path in Ruby. C:/Users/bla/bla2/asdf-ut-script.js 回答1: A UNC path requires that you know the name of the server and share, neither of which are present in your path, unless you're looking for something like: \\localhost\C$\Users\bla\bla2\asdf-ut-script.js If this is what you want: def File.to_unc( path, server="localhost", share=nil ) parts = path.split(File::SEPARATOR) parts.shift while parts.first.empty? if share parts.unshift share else #

Using batch file and WinSCP to download files from the FTP server to file server (shared folder)

若如初见. 提交于 2019-12-08 06:40:23
问题 I am using the following code to transfer files from my FTP server to my local machine which works fine. "C:\Program Files (x86)\WinSCP\WinSCP.com" /command ^ "open ftp://rnandipati:J13@Files8.cyberlynk.net/kgptel/" ^ "lcd ""C:\\rnandipati\KGP\File History""" ^ "get *.xls>1D" ^ "rm *.xls<1D" ^ "exit" Now, I access my server using this path \\fs01\\Reporting\KGP\File History When I put this path in place of my local directory path, it shows an error that the system could not find the file