Hi
How Can Clear All writing in the TEXT files?
We assume i have A folder AND Is Inside Folder Be 50 Number text file.
i want Without having open the text files,empty text files?!
im how empty 50 text file with batch file?
tanks
Clear All writing in the TEXT files
Moderator: DosItHelp
Re: Clear All writing in the TEXT files
This should reduce all the text files to zero byte files.
Code: Select all
@echo off
pushd "c:\folder\"
for %%a in (*.txt) do type nul>"%%a"
popd
Re: Clear All writing in the TEXT files
Thanks to all the friends and Dear foxidrive
My problem with the foxidrive code Resolved:
Thanks to all friends
My problem with the foxidrive code Resolved:
Code: Select all
@echo off
for %%a in (*.txt) do type nul>"%%a"
Thanks to all friends