How would I go about reading an entire directory and blanking files with a specific extension? I have an application that reads the content of a specific folder and returns an error if a file is missing, however it does’t check to see if the files are valid, so I want to make them NULL to get around the checks.
Share
if by ‘blanking’ you mean truncating them, you could use the following:
note that the double
%is for use within a batch file. if you are running this from a command line, use a single%.EDIT:
to incorporate @Loadmaster‘s improvement: