dimensionav
asked on
How to know if a file exists and how to create it?
How can I know if a file exists and If it doesn´t, how could I create an empty txt file?
Regards
Regards
@echo off
c:
if not exist C:\test.txt echo. > c:\test.txt
c:
if not exist C:\test.txt echo. > c:\test.txt
To create a blank file just issue an Open statement for the file you want.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window