Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: how to open files on cmd  (Read 149344 times)

0 Members and 1 Guest are viewing this topic.

maymon123

    Topic Starter


    Rookie

    • Experience: Familiar
    • OS: Windows XP
    how to open files on cmd
    « on: February 08, 2011, 11:22:35 AM »
    I am a beginner and was wondering how i can open jpeg files or avi files on cmd. I would also like to know how to open folders too...

    Salmon Trout

    • Guest
    Re: how to open files on cmd
    « Reply #1 on: February 08, 2011, 11:31:45 AM »
    What do you mean by "open" them? Make them appear in a viewer or video player? And when you say "open" a folder, do you mean open it in Windows Explorer?

    To "open" a file in its default program, type its file name at the prompt and press ENTER.

    To open a folder in Windows Explorer type

    Start "" "c:\path\to\folder" (replace with the right path)

    To open the current directory type

    Start "" "%cd%"






    « Last Edit: February 08, 2011, 11:44:15 AM by Salmon Trout »

    Dusty



      Egghead

    • I could if she would, but she won't so I don't.
    • Thanked: 75
    • Experience: Beginner
    • OS: Windows XP
    Re: how to open files on cmd
    « Reply #2 on: February 08, 2011, 01:28:39 PM »
    S.T. - how come my moggy got into your image ??? ;D
    One good deed is worth more than a year of good intentions.

    Salmon Trout

    • Guest
    Re: how to open files on cmd
    « Reply #3 on: February 08, 2011, 02:24:37 PM »
    S.T. - how come my moggy got into your image ??? ;D

    He must have been on vacation in Spain, at the Jardín Botánico in Valencia, visiting the famous colony of 50+ cats that live there, fed by the staff and supported by donations from local people and visitors who "adopt" a cat.


    maymon123

      Topic Starter


      Rookie

      • Experience: Familiar
      • OS: Windows XP
      Re: how to open files on cmd
      « Reply #4 on: February 09, 2011, 10:02:04 AM »
      Perfect! thanks salmon trout! can i use the "Start "" "c:\path\to\folder"" in a batch file to open images using windows explorer?

      Salmon Trout

      • Guest
      Re: how to open files on cmd
      « Reply #5 on: February 09, 2011, 10:06:43 AM »
      can i use the "Start "" "c:\path\to\folder"" in a batch file to open images using windows explorer?

      Open images in Windows Explorer? What do you mean?





      maymon123

        Topic Starter


        Rookie

        • Experience: Familiar
        • OS: Windows XP
        Re: how to open files on cmd
        « Reply #6 on: February 09, 2011, 10:28:41 AM »
        sorry, windows "picture and fax viewer". I would like a batch file to open a picture using that program...

        Salmon Trout

        • Guest
        Re: how to open files on cmd
        « Reply #7 on: February 09, 2011, 10:32:05 AM »
        sorry, windows "picture and fax viewer". I would like a batch file to open a picture using that program...

        Is it the default picture viewing program?

        maymon123

          Topic Starter


          Rookie

          • Experience: Familiar
          • OS: Windows XP
          Re: how to open files on cmd
          « Reply #8 on: February 09, 2011, 10:35:25 AM »
          yes

          Salmon Trout

          • Guest
          Re: how to open files on cmd
          « Reply #9 on: February 09, 2011, 10:40:17 AM »

          maymon123

            Topic Starter


            Rookie

            • Experience: Familiar
            • OS: Windows XP
            Re: how to open files on cmd
            « Reply #10 on: February 09, 2011, 10:49:16 AM »
            umm..... i tried... but how do i navigate through folders in cmd.... i am in the c drive, so "C:\>" shows up, how do i open a folder on the c drive (Documents and settings)? I want it to be "C:\documents and settings".

            Salmon Trout

            • Guest
            Re: how to open files on cmd
            « Reply #11 on: February 09, 2011, 10:51:35 AM »
            umm..... i tried... but how do i navigate through folders in cmd.... i am in the c drive, so "C:\>" shows up, how do i open a folder on the c drive (Documents and settings)? I want it to be "C:\documents and settings".

            C:\>cd "Documents and Settings" [hit Enter]

            Why do you want to do this? It seems like a lot of trouble for you.




            maymon123

              Topic Starter


              Rookie

              • Experience: Familiar
              • OS: Windows XP
              Re: how to open files on cmd
              « Reply #12 on: February 09, 2011, 10:56:34 AM »
              Oohh... thats it.... sorry, i love command prompt and i haven't used my computer for a while, due to school... so i forgot everything i knew... sorry.

              maymon123

                Topic Starter


                Rookie

                • Experience: Familiar
                • OS: Windows XP
                Re: how to open files on cmd
                « Reply #13 on: February 09, 2011, 11:05:29 AM »
                Thanx for all the help! :)