Help for this page

Select Code to Download


  1. or download this
    @setlocal
    @set thisdir=%~dp0
    @set thisfile=%~f0
    ...
    @echo;
    @endlocal
    
  2. or download this
             thisdir=D:\
            thisfile=D:\this2.bat
    thisfilebasename=this2
        thisfilename=this2.bat
      thisfilecorion=D:\this2.pl
          thisfilepl=D:\this2.pl
    
  3. or download this
    @setlocal
    @set "thisdir=%~dp0"
    @set "thisfile=%~f0"
    ...
    @echo;
    @endlocal
    
  4. or download this
    $  "D:\pa^th\this2.bat"
             thisdir=D:\path\
            thisfile=D:\path\this2.bat
    ...
      thisfilecorion=D:\path\this2.pl
          thisfilepl=D:\path\this2.pl