Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata
@ECHO OFF
CLS

SET FILEPATH=%~1
set "str=%FILEPATH%"
set "result=%str:.=" & set "result=%"
echo %result%
@ECHO OFF
CLS

::Get Extension
SET var="C:\tmp\test.pdfx"
For %%A in (%var%) do (
SET FILEEXT=%~x1
)
ECHO %FILEEXT%
PAUSE
  • No labels