Azz Posted July 17, 2008 Report Share Posted July 17, 2008 Hi guys, I'm a relatively new programmer and have always used the linux OS for anything Java related. I've recently started to use Windows for any proramming, but I have a pretty simple problem that I can't seem to solve. If I need to enter an arguement via the command prompt for a java application to run, I try to use the CD command to get to the correct folder, etc. The folder is called "NetBeansProjects" and is on my desktop. When I try to access this through my command prompt with the command 'cd NetBeansProjects' I get the response, 'invalid directory'I'm at a bit of a loss on how to handle this because I simply can't access this folder via the command prompt. Any advice would be appreciated. Cheers, Aaron. Quote Link to comment Share on other sites More sharing options...
thatsgame1 Posted July 17, 2008 Report Share Posted July 17, 2008 Hi Azz,What directory are you in when trying to change to this directory? By default you are usually in your "c:\documents and settings\yourname" directory. If the folder is on your desktop you will need to do the following:"cd desktop" - press enter (without quotes)"cd netbeansprojects" - press enter (without quotes).This should get you to that directory. Quote Link to comment Share on other sites More sharing options...
Azz Posted July 17, 2008 Author Report Share Posted July 17, 2008 Hi Azz,What directory are you in when trying to change to this directory? By default you are usually in your "c:\documents and settings\yourname" directory. If the folder is on your desktop you will need to do the following:"cd desktop" - press enter (without quotes)"cd netbeansprojects" - press enter (without quotes).This should get you to that directory.Hey, I probably should have specified that, but I make sure I am already in the desktop folder, as it were, when trying to access that folder. if I type "dir", and in the list of files and fodlers, it shows the "NetBeansProjects" folder, which is why i really can't understand why it isn't working. thanks. Quote Link to comment Share on other sites More sharing options...
thatsgame1 Posted July 17, 2008 Report Share Posted July 17, 2008 Can you provide a screenshot of your desktop where the folder is and a shot of the error you're getting? Quote Link to comment Share on other sites More sharing options...
Azz Posted July 17, 2008 Author Report Share Posted July 17, 2008 Can you provide a screenshot of your desktop where the folder is and a shot of the error you're getting? might take me a minute or two, will have to try and work out how to put images up on here etc...2 secsAlso, I have my icons on desktop hidden (that won't have anything to do with the problem, surely?), so will just screenshot the actual "desktop" folder, as it were, and the command prompt. ... Quote Link to comment Share on other sites More sharing options...
Azz Posted July 17, 2008 Author Report Share Posted July 17, 2008 Can you provide a screenshot of your desktop where the folder is and a shot of the error you're getting?ok, how do you do that? Quote Link to comment Share on other sites More sharing options...
Azz Posted July 17, 2008 Author Report Share Posted July 17, 2008 Can you provide a screenshot of your desktop where the folder is and a shot of the error you're getting?ok, how do you do that?regardless of the screenshots, can anyone else actually provide a solution??? Quote Link to comment Share on other sites More sharing options...
thatsgame1 Posted July 17, 2008 Report Share Posted July 17, 2008 You can hit the "Print Screen" button on the keyboard with your desktop up (if you could show the icons that would be great), then save and upload image to reply message. Quote Link to comment Share on other sites More sharing options...
Azz Posted July 17, 2008 Author Report Share Posted July 17, 2008 You can hit the "Print Screen" button on the keyboard with your desktop up (if you could show the icons that would be great), then save and upload image to reply message.that worked? Quote Link to comment Share on other sites More sharing options...
thatsgame1 Posted July 17, 2008 Report Share Posted July 17, 2008 Yes that worked. I don't have a lot of experience with Vista but try:cd users - entercd aaron - entercd desktop - enter Quote Link to comment Share on other sites More sharing options...
Azz Posted July 17, 2008 Author Report Share Posted July 17, 2008 Yes that worked. I don't have a lot of experience with Vista but try:cd users - entercd aaron - entercd desktop - enterdude, the image shows that I'm already in the Desktop folder. My problem is getting into the "NetBeansProjects" folder through the command prompt. !? As BOTH images show that it IS in the Desktop folder. Therefore, I can't understand why I can't access it through the command prompt. *sigh* Quote Link to comment Share on other sites More sharing options...
thatsgame1 Posted July 17, 2008 Report Share Posted July 17, 2008 Ususally command prompt shows you as you change directories. Can you get in to another folder on desktop? Try dropping NetBeansProjects on the root of C and accessing it. Quote Link to comment Share on other sites More sharing options...
Azz Posted July 17, 2008 Author Report Share Posted July 17, 2008 I can't get into another folder on Desktop. Copied the folder to C: and can't access it there either (through command prompt)confused. :\ Quote Link to comment Share on other sites More sharing options...
thatsgame1 Posted July 17, 2008 Report Share Posted July 17, 2008 hum....Can you recreate a new folder on the root of c: then copy the contents from "NetBeansProjects"? Are you a local administrator in that PC? Quote Link to comment Share on other sites More sharing options...
ɹəuəllıʍ ʇɐb Posted July 18, 2008 Report Share Posted July 18, 2008 The Desktop is a very special folder than may not act like a normal folder. I cannot see why you want to put a programming folder on the Desktop of all places. Why not leave it where it is installed by default? Quote Link to comment Share on other sites More sharing options...
Indie Prime Posted October 30, 2008 Report Share Posted October 30, 2008 wow.. and i don't mean world of warcraft.. the answers here are totally useless..i had exactly the same problem, and here is the answer:the directory names are trunkated to 8 characters. so use,cd NetBea~1note that it adds up to 8 characters total including the 1st 6 characters of the directory name, ~, and 1 for the first directory that has these first 6 characters..if there are more than 1 directory that has the same first letters, then i believe the numbers change in sequence... i dont know what happens once you have more than 9 directories with the same first 6 characters.. i dont remember experiencing anything like this in XP. may be i'm missing some properties that can be tuned. anybody has any further suggestions about the vista command prompt?.. The folder is called "NetBeansProjects" and is on my desktop. When I try to access this through my command prompt with the command 'cd NetBeansProjects' I get the response, 'invalid directory'I'm at a bit of a loss on how to handle this because I simply can't access this folder via the command prompt.. Quote Link to comment Share on other sites More sharing options...
Hb_Kai Posted October 30, 2008 Report Share Posted October 30, 2008 Nothing happens if you use more than 9 letters. The 8 characters thing is just to shorted command lines down.You need to put the exact directory of the folder in after cd.So for the explanation's sake. Say the folder is on your desktop... cd C:\Documents and Settings\indie prime\Desktop\NetBeansProjectsIf it doesn't work, check to see if the folder is actually in the directory you think it is. Even if it shows on Windows Explorer.dir C:\Documents and Settings\Indie Prime\DesktopIt should come up in the list there somewhere.I've used CMD for a long time now for Java related programming and often had a similar problem.wow.. and i don't mean world of warcraft.. the answers here are totally useless..I don't think so actually. I quite like this forum. :D Even for non-IT-related issues. :D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.