Annotation of embedaddon/php/ext/standard/tests/file/windows_links/common.inc, revision 1.1
1.1 ! misho 1: <?php
! 2:
! 3: function get_sysroot() {
! 4: // usually c:\\windows, but not always
! 5: return exec('echo %SYSTEMROOT%');
! 6: }
! 7:
! 8: function get_junction(){
! 9: // junction.exe isn't included with Windows
! 10: // its a sysinternals tool for working with filesystem links
! 11: // see: http://technet.microsoft.com/en-us/sysinternals/bb896768
! 12:
! 13: // install somewhere that is on %path% or added to %path%
! 14: return "junction.exe";
! 15: }
! 16:
! 17: function get_mountvol() {
! 18: $sysroot = get_sysroot();
! 19:
! 20: return "$sysroot\\System32\\mountvol.exe";
! 21: }
! 22:
! 23: ?>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>