need to add header and add a formula
Posted: 23 Oct 2022 23:42
@echo off
SET "CDIR=%~dp0"
:: for loop requires removing trailing backslash from %~dp0 output
SET "CDIR=%CDIR:~0,-1%"
FOR %%i IN ("%CDIR%") DO SET "PARENTFOLDERNAME=%%~nxi"
ECHO Parent folder: %PARENTFOLDERNAME%
dir /b /o:n *.tif *.eps *.png *.jpg > %PARENTFOLDERNAME%.csv
exit
--------------------------------
Headers Column A1"Find" Column B1"Change"
List files in B1"Change"
Add a formula in A1"Find"
Input and Output files in the link below.
Input file https://fromsmash.com/aAOU6Hv3py-dt
Output file https://fromsmash.com/5LPuvbLuTL-dt
SET "CDIR=%~dp0"
:: for loop requires removing trailing backslash from %~dp0 output
SET "CDIR=%CDIR:~0,-1%"
FOR %%i IN ("%CDIR%") DO SET "PARENTFOLDERNAME=%%~nxi"
ECHO Parent folder: %PARENTFOLDERNAME%
dir /b /o:n *.tif *.eps *.png *.jpg > %PARENTFOLDERNAME%.csv
exit
--------------------------------
Headers Column A1"Find" Column B1"Change"
List files in B1"Change"
Add a formula in A1"Find"
Input and Output files in the link below.
Input file https://fromsmash.com/aAOU6Hv3py-dt
Output file https://fromsmash.com/5LPuvbLuTL-dt