Check if an absolute path of a directory or a file name are valid
问题 I'm creating a bat script and I should check whether a variable contains a valid absolute path of a directory and if another variable contains a valid name of a file for Windows 8 and above. So, how would I go these checks? Thanks Bye 回答1: This is much trickier than most people realize. There is lots of misinformation about this topic available on SO and elsewhere. There are many "solutions" that appear to work, but then fail under certain circumstances. The problem can be divided into two