Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

batch directory

echo [current working directory]     :     %%cd%%       :      %cd%     
echo [batch folder path]             :     %%~dp0      :      %~dp0     
echo [batch files fullpath]          :     %%~dpnx0    :      %~dpnx0
echo [batch files fullpath]          :     %%~f0       :      %~f0

REM # | OUTPUT EXAMPLE
REM # | [current working directory] : %cd%     :  G:DynamicWorkingDirectory
REM # | [batch folder path]         : %~dp0    :  G:Deletable
REM # | [batch files fullpath]      : %~dpnx0  :  G:Deletable1_Basic.bat
REM # | [batch files fullpath]      : %~f0     :  G:Deletable1_Basic.bat
Comment

batch script directory

FOR %%i in ("%~dp0.") do SET "parent_folder=%%~fi"
Comment

PREVIOUS NEXT
Code Example
Shell :: kill port in windows 
Shell :: git diff ignore spaces and tabs 
Shell :: install drush ubuntu 
Shell :: how to update vs code in linux 
Shell :: responsive grid system angular 
Shell :: git orphan branch and remove all data 
Shell :: ubuntu zip file 
Shell :: redis cli connect to remote server with password 
Shell :: -bash: : Permission denied 
Shell :: time machine speed up 
Shell :: how to remove software from ubuntu 
Shell :: gdown download zip file 
Shell :: how to stop a web server linux 
Shell :: pod install mac m1 
Shell :: install openjdk11 in ubuntu 
Shell :: wget command not found mac 
Shell :: update gnome shell 
Shell :: how to generate ssh key in linux 
Shell :: kill port in mac terminal 
Shell :: centos start docker 
Shell :: how to install winget tool on powershell 
Shell :: electron build windows exe 
Shell :: git ubuntu store credential 
Shell :: screen recorder ubuntu 
Shell :: pip fork install 
Shell :: git grep across all branches 
Shell :: windows 10 startup folder 
Shell :: plasma 
Shell :: stylelint run 
Shell :: .env in gitignore 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =