File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / file / windows_links / common.inc
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Jul 22 01:32:08 2013 UTC (11 years ago) by misho
Branches: php, MAIN
CVS tags: v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17, HEAD
5.4.17

<?php

function get_sysroot() {
	// usually c:\\windows, but not always
	return exec('echo %SYSTEMROOT%');
}

function get_junction(){
	// junction.exe isn't included with Windows
	// its a sysinternals tool for working with filesystem links
	// see: http://technet.microsoft.com/en-us/sysinternals/bb896768
	
	// install somewhere that is on %path% or added to %path%
	return "junction.exe";
}

function get_mountvol() {
	$sysroot = get_sysroot();

	return "$sysroot\\System32\\mountvol.exe";
}

?>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>