Not able to switch to directory using CD command in batch file -


as getting directortry path dynamically, while switching using cd gets default path of script file placed:

@echo off setlocal enabledelayedexpansion %%i in ("%~dp0..\project\abc") set "folder=%%~fi" echo !folder! %%i in ("%~dp0..\dependencies\apache\bin") set "apache=%%~fi" echo !apache! cd !apache! //this not change directory echo %~dp0 httpd -k start -c "documentroot !folder!" pause 


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -