[ros-diffs] [dreimer] 37658: Another fix to get back to the path you started the command with. Credits goto Maciej Bialas

dreimer at svn.reactos.org dreimer at svn.reactos.org
Wed Nov 26 14:13:19 CET 2008


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/update.cmd?rev=37658&r1=37657&r2=37658&view=diff
==============================================================================
--- 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"



More information about the Ros-diffs mailing list