To merge text files in a directory you can create a simple *.cmd file with the following content: @ECHO OFF
for %%f in (*.txt) do type "%%f" >> output.txt
CMD: Howto merge textfiles
Reply
To merge text files in a directory you can create a simple *.cmd file with the following content: @ECHO OFF
for %%f in (*.txt) do type "%%f" >> output.txt
You can manage your global assemblies with the gacutil.exe which comes with Microsoft SDK. You can find this tool for instance in folder "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\".
This is an example about removing one assembly:
"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\gacutil.exe" /u Assembly.To.Uninstall
Here is an example batch file that deletes all Delphi “__history” folders recursively:
BOF of batch file:
===========
@ECHO OFF
ECHO.
@SET DELPHI_PROJECTDIR=C:\DELPHI_PROJECTS
REM delete all __history folders recursively
FOR /D /R "%DELPHI_PROJECTDIR%" %%d IN (__history) DO (
IF EXIST "%%d" (
echo deleting temp directory "%%d"
RMDIR /S /Q "%%d"
)
)
PAUSE
===========
EOF of batch file
Here is a little example batch file that lists all folders of a directory:
BOF of batch file:
===========
@ECHO OFF ECHO. @SET MYDIR=C:\TEMP FOR /D %%a IN (%MYDIR%\*) DO echo %%a PAUSE
===========
EOF of batch file