Hello all, I have a little problem. I use java and javac alot and everytime I open "cmd" I have to cd to the right directory! Which can be a pain.
Well, I thought I'd make a .bat file so that when I click and open it, it would be in the right directory. I went into Notepad and typed:
and saved it as a .bat file, however, when I run it, it comes up quickly and then dissapears! I tried adding pause to the end, but that was no help.
Can anyone offer any ideas?
Thanks :D
Well, I thought I'd make a .bat file so that when I click and open it, it would be in the right directory. I went into Notepad and typed:
cd c:\Users\<username>\Documents\Java
and saved it as a .bat file, however, when I run it, it comes up quickly and then dissapears! I tried adding pause to the end, but that was no help.
Can anyone offer any ideas?
Thanks :D

Help
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Back to top










