Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

command prompt issue

Options
  • 24-03-2009 6:50pm
    #1
    Registered Users Posts: 555 ✭✭✭


    Hi guys. I'm hoping there is a simple answer to this. I'm using the command prompt in Windows, and I want to open up the 'Program Files' folder in my c:/ drive.

    I can't do it. As far as I can tell, I need to put quote around the two words, but command prompt says;
    Parameter format not correct - "Program
    

    I also tried the * but that doesn't work either.

    I can't find an answer to this in books or the net - I'm wasting time on it.

    Thanks guys.


Comments

  • Closed Accounts Posts: 1,089 ✭✭✭cpu-dude


    Start > Run > Type (with the inverted commas):
    "C:\Program Files"
    Then press OK.


  • Registered Users Posts: 555 ✭✭✭Caryatnid


    Sorry, I explained myself really wrong there. Basically I want
    C:\Program files\>
    to appear in my command windows. I don't want to actually open the Program files in explorer, I do know how to do that already. :)


  • Closed Accounts Posts: 3,285 ✭✭✭Smellyirishman


    cd Program Files
    cd C:\Program Files

    Either works fine for me :confused:


  • Registered Users Posts: 555 ✭✭✭Caryatnid


    cd Program Files
    cd C:\Program Files
    Doesn't work! I dunno why! I get this when I try those commands;
    Too many parameters - Files
    


  • Closed Accounts Posts: 1,089 ✭✭✭cpu-dude


    Caryatnid wrote: »
    Doesn't work! I dunno why! I get this when I try those commands;
    Too many parameters - Files
    
    You need to type:
    cd "C:\Program Files"

    Command Prompt doesn't like spaces :D


  • Advertisement
  • Registered Users Posts: 6,440 ✭✭✭jhegarty


    Or

    cd progra~1


  • Closed Accounts Posts: 1,089 ✭✭✭cpu-dude


    jhegarty wrote: »
    Or

    cd progra~1
    That also requires C:\ at the start of it:

    cd C:\Progra~1


  • Registered Users Posts: 555 ✭✭✭Caryatnid


    cpu-dude wrote: »
    Command Prompt doesn't like spaces :D
    I tried what you suggest, but my problem is that my Command Prompt doesn't seem to be able to recognise quotes!


  • Registered Users Posts: 555 ✭✭✭Caryatnid


    jhegarty wrote: »
    Or

    cd progra~1
    That worked! Thanks a million. I still don't know why my Command Prompt won't recognise quotes but I'm delighted to have gotten this fix.


  • Registered Users Posts: 547 ✭✭✭the merchant


    cd\
    cd pro*


  • Advertisement
  • Closed Accounts Posts: 1,089 ✭✭✭cpu-dude


    Caryatnid wrote: »
    I tried what you suggest, but my problem is that my Command Prompt doesn't seem to be able to recognise quotes!
    You serious? Shift + F2 or Shift + (location of the @ symbol on some Americanised keyboards).


  • Registered Users Posts: 555 ✭✭✭Caryatnid


    cpu-dude wrote: »
    You serious? Shift + F2 or Shift + (location of the @ symbol on some Americanised keyboards).
    Yep totally serious. I have the Americanised keyboard, I am definitely using the right character, but you are right to ask - I wondered about that earlier - because I know enough about computers to know that if something normal doesn't work - it's usually a user error. :)
    I am trying to set up MySQL on my computer, and although not a Command Prompt expert, I have used it before on other computers a fair few times. I can't figure out why it won't work and I need to find the out why!


  • Registered Users Posts: 21,264 ✭✭✭✭Hobbes


    jhegarty wrote: »
    Or

    cd progra~1

    Thats oldskool and should probably be avoided. :)

    You can do

    cd "progr*

    or

    cd prog*

    of

    cd program
    then hit TAB before hitting enter. Will cycle through the related directories.

    I use wild cards, its faster. :)

    For example

    cd c:\win*\sys*\dri*\etc

    will get you to "C:\Windows\System32\drivers\etc"


  • Registered Users Posts: 26,579 ✭✭✭✭Creamy Goodness


    use unix, :pac:


  • Registered Users Posts: 819 ✭✭✭sixpack's little hat


    If you are using 'command', try using 'cmd' instead and see if it works then.


  • Registered Users Posts: 555 ✭✭✭Caryatnid


    If you are using 'command', try using 'cmd' instead and see if it works then.
    THAT WORKS!!!!
    Thanks so much! I didn't think of that!

    Still can't get the 'command' to understand quotes (or *) but cmd is accepting everything beautifully. Thanks a million.


  • Registered Users Posts: 819 ✭✭✭sixpack's little hat


    Glad to help!

    I remember something similar happening me a few years back, couldn't work it out for ages so not likely to forget it.


  • Registered Users Posts: 527 ✭✭✭Sean^DCT4


    cd %ProgramFiles%
    

    Windows environment variable


  • Registered Users Posts: 6,465 ✭✭✭MOH


    Oddly, this chooses your exact problem to highlight the difference between command.com and cmd.exe.

    (I didn't even realise command.com was still there!)


Advertisement