In Microsoft Windows operating system, On command prompt window or Batch file.
to display the full path name of your current directory :
echo %cd%
or
cd
In Microsoft Windows operating system, On batch file.
to display the full path name of your current file :
echo %~dp0
In Microsoft Windows operating system, On command prompt window or Batch file.
to copy the full path name of your current directory to clipboard :
echo %cd% | clip
In Microsoft Windows operating system, On batch file.
to display the full path name of your current directory with file name :
echo %0
to display just the filename without the extension. :
%~n0
to display just the extension without the filename :
%~x0
to display the filename with the extension. :
%~n0%~x0
In Unix or Linux operating system based
to display the full path name of your print working directory :
echo PWD
or
PWD
Notes:
- type "$(pwd)" or $PWD or PWD according to your Unix or Linux distribution.
- every command in linux is case sensitive.
Bibliograpy:
https://www.ibm.com/
https://www.lenovo.com/
https://hpc.nmsu.edu/ ( university )
https://superuser.com/
https://www.configserverfirewall.com/
http://pens.ac.id/ ( university )
https://github.com/
https://stackoverflow.com/
Current Directory, Current Folder, Current Address Path, command line, command prompt
Tidak ada komentar:
Posting Komentar