Batch File - going back two steps in a directory path
问题 I am creating a batch file i am on a path C:\Validation\docs\chm I want to move back to the C:\Validation part which is in %DialogPath% This was entered by the user but when i write CD /D %DialogPath% An error occurs that tells this path does not exists 回答1: The direct answer to your question would be cd ..\.. But cd /D C:\Validation also works. The problem is more likely with the variable than then command. 回答2: Until you give more details as to the script in question, we can only guess to