Author: dreimer
Date: Wed Nov 26 07:13:18 2008
New Revision: 37658
URL: http://svn.reactos.org/svn/reactos?rev=37658&view=rev
Log:
Another fix to get back to the path you started the command with. Credits goto Maciej Bialas
Modified:
trunk/tools/RosBE/RosBE-Windows/Root/update.cmd
Modified: trunk/tools/RosBE/RosBE-Windows/Root/update.cmd
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Root/upd…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Root/update.cmd [iso-8859-1] (original)
+++ trunk/tools/RosBE/RosBE-Windows/Root/update.cmd [iso-8859-1] Wed Nov 26 07:13:18 2008
@@ -26,8 +26,7 @@
::
:: Save the recent dir to cd back there at the end.
::
-set _ROSBE_OPATH=%~dp0
-set _ROSBE_OPATH=%_ROSBE_OPATH:~0,-1%
+set _ROSBE_OPATH=%CD%
if not exist "%_ROSBE_BASEDIR%\Tools\7z.exe" (
cd /d "%_ROSBE_BASEDIR%\Tools"