Format: if exist file name command to be executed
If the specified file exists, the condition is true, and the command is run; otherwise, the next sentence is run
If there are two or more commands to be executed, how should they be written?
Another question:
Find a segment of statements to have the following effect.
If 01.txt and 02.txt exist simultaneously under D:\
Then open the contents of 01.txt and 02.txt
Otherwise, delete 01.txt (or 02.txt) when only 01.txt or 02.txt exists
Looking forward to an answer~~~
If the specified file exists, the condition is true, and the command is run; otherwise, the next sentence is run
If there are two or more commands to be executed, how should they be written?
Another question:
Find a segment of statements to have the following effect.
If 01.txt and 02.txt exist simultaneously under D:\
Then open the contents of 01.txt and 02.txt
Otherwise, delete 01.txt (or 02.txt) when only 01.txt or 02.txt exists
Looking forward to an answer~~~
