I am facing problems in setting the path as well when i execute autoexec.bat.
Are you trying to edit the windows autoexec.bat file to set the path?
Then it is notthe right way to do it, alternately go to My computer->properties->advanced->environment variables->path.
Hope this helps