CD command (change directory) in batch file

You have encountered a problem using Far Manager? Here you can get help.
Posts: 1
Joined: Fri Aug 18, 2006 3:05 pm

CD command (change directory) in batch file

Post by JMM » Fri Aug 18, 2006 3:35 pm

I want to change Panel's directory using batch file with CD command. But when I use it, FAR always return to his previous directory. How do I solve it?

User avatar
Posts: 32
Joined: Thu Feb 23, 2006 6:48 pm

Post by DrKnS » Fri Aug 18, 2006 4:40 pm

batch files is processed by %comspec%, not by FAR directly, so, cd command will change working directory for command processor, FAR even didn't know about this. You should put all contents of your batch to User Menu. It works.