Jump to content


Register a free account to unlock additional features at BleepingComputer.com
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.

Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.


Beginning Java

  • Please log in to reply
2 replies to this topic

#1 bourne2ski


  • Members
  • 1 posts
  • Local time:06:12 PM

Posted 27 October 2007 - 02:59 PM

I took a Java class two years ago, and I'm just getting back into it as a hobby type activity. I've gotten it all working again except for one thing in the command prompt where I run the programs. Every time I open up a new command prompt window, its default location is in my documents so I have to type CD C:\Source to get to where the java files are. In my class I learned how to make C:\Source the default starting location when I opened up a new command prompt window, but I can't do it now. How can I do this?

BC AdBot (Login to Remove)


#2 groovicus


  • Security Colleague
  • 9,963 posts
  • Gender:Male
  • Location:Centerville, SD
  • Local time:05:12 PM

Posted 28 October 2007 - 09:55 AM

Was it maybe something like this?
* Open up windows explorer
* Tools -> Folder Options.
* File Types Tab
* Select the Folder file type
* Click Advanced
* Click New
* For the Action type what ever you want the context menu to display, I used Command Prompt.
* For the Application used to perform the action use c:\windows\system32\cmd.exe (note on win2k you will want to specify the winnt directory instead of the windows directory)

#3 Guest_danbrownlow_*


  • Guests

Posted 31 October 2007 - 05:40 PM

I just made a batch file, which I placed in 'c:/users'.
In the batch file just type: cd:\users\<username>\etc to the directory you want to change to and save it as 'JavaLaunch.bat', or something like that. Then when you load up cmd you just need to write JavaLaunch.bat and it will take you to the directory lol.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users