Batch File - going back two steps in a directory path

后端 未结 3 1176
走了就别回头了
走了就别回头了 2020-12-18 14:00

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 
         


        
3条回答
  •  眼角桃花
    2020-12-18 14:28

    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.

提交回复
热议问题