In batch processing, when operating on a file passed in as an argument, if the file doesn't exist but the directory does, an error will occur during operation. So I want to make a judgment. My operation is to use if exist path\nul, but when there are long file names, it can't be judged. How should I do it? How to judge whether a parameter passed to the batch is a file name or a directory name?



Handshake...