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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

command prompt issue

  • 24-03-2009 5:50pm
    #1
    Registered Users, Registered Users 2 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, Registered Users 2 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, Registered Users 2 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, Registered Users 2 Posts: 6,441 ✭✭✭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, Registered Users 2 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, Registered Users 2 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, Registered Users 2 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, Registered Users 2 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, Registered Users 2 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, Registered Users 2 Posts: 26,584 ✭✭✭✭Creamy Goodness


    use unix, :pac:


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


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


  • Registered Users, Registered Users 2 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, Registered Users 2 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, Registered Users 2 Posts: 527 ✭✭✭Sean^DCT4


    cd %ProgramFiles%
    

    Windows environment variable


  • Registered Users, Registered Users 2 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