Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

batch file extension

@echo off
setlocal
set file=C:Usersl72rugschiriDesktopfs.cfg
for %%i IN ("%file%") DO (
   	echo filedrive=%%~di
	echo filepath=%%~pi
	echo filename=%%~ni
	echo fileextension=%%~xi
)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #batch #file #extension
ADD COMMENT
Topic
Name
4+1 =