How to (quickly) check if UNC Path is available

How’s this for a quick and dirty way to check – run the windows net use command and parse the output for the line with the network path of interest (e.g. \\vault2) and OK. Here’s an example of the output: C:\>net use New connections will be remembered. Status Local Remote Network ——————————————————————————- OK O: \\smarty\Data … Read more

Linking a UNC / Network drive on an html page

To link to a UNC path from an HTML document, use file:///// (yes, that’s five slashes). file://///server/path/to/file.txt Note that this is most useful in IE and Outlook/Word. It won’t work in Chrome or Firefox, intentionally – the link will fail silently. Some words from the Mozilla team: For security purposes, Mozilla applications block links to … Read more

How to run batch file from network share without “UNC path are not supported” message?

PUSHD and POPD should help in your case. @echo off :: Create a temporary drive letter mapped to your UNC root location :: and effectively CD to that location pushd \\server\soft :: Do your work WP15\setup.exe robocopy.exe “WP15\Custom” /copyall “C:\Program Files (x86)\WP\Custom Templates” Regedit.exe /s WPX5\Custom\Migrate.reg :: Remove the temporary drive letter and return to … Read more

Find UNC path of a network drive?

In Windows, if you have mapped network drives and you don’t know the UNC path for them, you can start a command prompt (Start → Run → cmd.exe) and use the net use command to list your mapped drives and their UNC paths: C:\>net use New connections will be remembered. Status Local Remote Network ——————————————————————————- … Read more

Permissions issue with virtual directory to UNC path

The fact that it’s an ASP.net app is probably exactly what the issue is here. Your application pool identity has to have rights (not necessarily the IIS identity; by default, the app pool identity is the local Network Service account.) You also probably need to run caspol.exe on your IIS machine. http://msdn.microsoft.com/en-us/library/cb6t8dtz%28v=vs.80%29.aspx http://learn.iis.net/page.aspx/50/aspnet-20-35-shared-hosting-configuration/ %windir%\Microsoft.NET\Framework\v2.0.50727\caspol -m … Read more

Windows 7 search not showing results from mapped Server 2008 R2 share

Given that you’re trying to search a server and not your local system, it’s probably not related to indexing as you shouldn’t have all your clients indexing a file server. What happens on the system that doesn’t work if you login as a completely different user and try to search the sever? If you get … Read more

Map a network drive to be used by a service

Use this at your own risk. (I have tested it on XP and Server 2008 x64 R2) For this hack you will need SysinternalsSuite by Mark Russinovich: Step one: Open an elevated cmd.exe prompt (Run as administrator) Step two: Elevate again to root using PSExec.exe: Navigate to the folder containing SysinternalsSuite and execute the following … Read more