Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

batch file drive

@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 #drive
ADD COMMENT
Topic
Name
8+1 =