Is there a way to map a UNC path to a local folder on Windows 2003? -


i know can map unc path local drive letter. however, wondering if there way map unc path local folder. have program has specific folder hard coded program , wanting try , create folder same name mapped unc path data can accessed network share. doable? on windows 2003 server.

this meets op asked - symbolic link windows 2003 maps network share. after many hours looking @ others , testing them, component found work network shares.

symbolic link driver windows xp

this utility work both xp , 2003 mapping network share , creating symlink: http://schinagl.priv.at/nt/ln/ln.html#symboliclinksforwindowsxp

now put in directory put on path , have ability create symlinks using senable.exe (with symlink.sys) , ln.exe (you need above site along dependency on visual c++ runtime dlls).

added bonus: fake out mklink

put these additional 2 files same directory have senable.exe , make sure on path.

mklink.cmd:

@echo off  set dir=%~dp0% @powershell -noprofile -executionpolicy unrestricted -command "& '%dir%symlink.ps1' %*"  pushd "%dir%" "%dir%senable.exe" start popd 

symlink.ps1:

param (  [string]$symlinktype,  [string]$link,  [string]$target )  $scriptpath = $myinvocation.mycommand.path $scriptdir = split-path $scriptpath  $senable = join-path "$scriptdir" senable.exe $ln = join-path "$scriptdir" ln.exe  pushd "$scriptdir" & cmd /c "$senable" install popd & cmd /c "$ln" -s "$target" "$link" 

note:

you need following other items installed on windows 2003 (non-r2, i'm not sure need r2 yet):

  • microsoft .net framework 2.0 service pack 1
  • windows imaging component
  • windows server 2003 service pack 2
  • windows management framework core (this brings powershell 2)

chocolatey package

i created chocolatey package of you: http://chocolatey.org/packages/win2003-mklink

important note

unlike regular symlinks, can not delete folder remove symbolic link folder. if that, delete real folder it pointing to. use extreme care.


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -