From 4dc4c537142907a8f80f34845839751ed4422b9e Mon Sep 17 00:00:00 2001
From: dugan <dugan@localhost>
Date: Wed, 25 Jul 2007 04:00:20 +0000
Subject: [PATCH] Use work-around for long filename bug in Windows 2000. Issue #1985.
---
opends/resource/setup.bat | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/opends/resource/setup.bat b/opends/resource/setup.bat
index 8fd0f24..07ba26f 100644
--- a/opends/resource/setup.bat
+++ b/opends/resource/setup.bat
@@ -29,11 +29,14 @@
rem check that the path does not contain the ^% character which breaks
rem the batch files.
-set NON_ESCAPED=%~dPs0..
+for %%i in (%~sf0) do set NON_ESCAPED=%%~dPsi..
+
+
FOR /F "tokens=1-2* delims=%%" %%1 IN ("%NON_ESCAPED%") DO (
if NOT "%%2" == "" goto invalidPath)
-set DIR_HOME=%~dP0.
+for %%i in (%~sf0) do set DIR_HOME=%%~dPsi.
+
set INSTANCE_ROOT=%DIR_HOME%
:checkJavaBin
--
Gitblit v1.10.0