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

Author Topic: Dos command..  (Read 30803 times)

0 Members and 1 Guest are viewing this topic.

cbegarly

    Topic Starter


    Starter

    Dos command..
    « on: February 20, 2009, 04:20:12 PM »
    [/color ???

     How do I issue the command, through Dos for \windows directory .EXE files?

    Dias de verano

    • Guest
    Re: Dos command..
    « Reply #1 on: February 20, 2009, 04:38:36 PM »
    Please write more clearly what you want to know. In English.

    cbegarly

      Topic Starter


      Starter

      Re: Dos command..
      « Reply #2 on: February 21, 2009, 07:40:51 AM »

        I'm currently enrolled in a CIT class.we are learning Dos and command line.
      A challenge was presented to us (to issue the directory command for \windows
      directory, to display only .EXE files in wide format without changing directories.

       *Also issue command for help on Version command (XP ONLY).

      Thanks!!.

      Dias de verano

      • Guest
      Re: Dos command..
      « Reply #3 on: February 21, 2009, 07:46:47 AM »
      Have you tried to do it? If you had been paying attention in class, this should be very easy for you.


      cbegarly

        Topic Starter


        Starter

        Re: Dos command..
        « Reply #4 on: February 21, 2009, 07:51:45 AM »

          Thanks for the help!

        BC_Programmer


          Mastermind
        • Typing is no substitute for thinking.
        • Thanked: 1140
          • Yes
          • Yes
          • BC-Programming.com
        • Certifications: List
        • Computer: Specs
        • Experience: Beginner
        • OS: Windows 11
        Re: Dos command..
        « Reply #5 on: February 21, 2009, 10:34:39 AM »

          Thanks for the help!

        I have a feeling there was an implied " >:(" at the end of that.
        I was trying to dereference Null Pointers before it was cool.

        BatchRocks



          Hopeful
        • Thanked: 3
          Re: Dos command..
          « Reply #6 on: February 21, 2009, 12:11:37 PM »

            Thanks for the help!

          I have a feeling there was an implied " >:(" at the end of that.

          I have to agree....

          Dias de verano

          • Guest
          Re: Dos command..
          « Reply #7 on: February 21, 2009, 12:14:09 PM »
          Do you think I should have done his homework for him?

          BatchRocks



            Hopeful
          • Thanked: 3
            Re: Dos command..
            « Reply #8 on: February 21, 2009, 12:14:42 PM »
            Do you think I should have done his homework for him?


            Yes, but then call his professor and give him this link ;).

            BC_Programmer


              Mastermind
            • Typing is no substitute for thinking.
            • Thanked: 1140
              • Yes
              • Yes
              • BC-Programming.com
            • Certifications: List
            • Computer: Specs
            • Experience: Beginner
            • OS: Windows 11
            Re: Dos command..
            « Reply #9 on: February 21, 2009, 12:16:00 PM »
            Do you think I should have done his homework for him?


            that's not what I meant :)

            It would just be unusual for somebody to take the fact that we don't do homework for them that well is all...
            I was trying to dereference Null Pointers before it was cool.

            Geek-9pm


              Mastermind
            • Geek After Dark
            • Thanked: 1026
              • Gekk9pm bnlog
            • Certifications: List
            • Computer: Specs
            • Experience: Expert
            • OS: Windows 10
            Re: Dos command..
            « Reply #10 on: February 21, 2009, 12:23:45 PM »
            Why not just tell him to search this site?
            Go to the top and find the box for this site and enter
            color in DOS
            ...and get lots of answers to the question. If he can not pay attention in class, he should at least learn how to do research.

            Dias de verano

            • Guest
            Re: Dos command..
            « Reply #11 on: February 21, 2009, 12:41:57 PM »
            Why not just tell him to search this site?
            Go to the top and find the box for this site and enter
            color in DOS
            ...and get lots of answers to the question. If he can not pay attention in class, he should at least learn how to do research.

            he's not interested in "color" as such, that's just his post gone wrong.

            billrich

            • Guest
            Re: Dos command..
            « Reply #12 on: February 22, 2009, 02:48:09 AM »

            C:\>cd \

            C:\>cd windows

            C:\WINDOWS>dir  *.exe
             Volume in drive C has no label.
             Volume Serial Number is B8F2-4B99

             Directory of C:\WINDOWS

            04/14/2008  04:42 AM         1,033,728 explorer.exe
            04/14/2008  04:42 AM            10,752 hh.exe
            12/17/1997  08:33 PM           304,128 IsUninst.exe
            04/14/2008  04:42 AM            69,120 notepad.exe
            04/14/2008  04:42 AM           146,432 regedit.exe
            04/14/2008  04:42 AM            32,866 slrundll.exe
            08/04/2004  06:00 AM            15,360 TASKMAN.EXE
            08/04/2004  06:00 AM            49,680 twunk_16.exe
            08/04/2004  06:00 AM            25,600 twunk_32.exe
            08/04/2004  06:00 AM           256,192 winhelp.exe
            04/14/2008  04:42 AM           283,648 winhlp32.exe
                          11 File(s)      2,227,506 bytes
                           0 Dir(s)   1,168,609,280 bytes free

            C:\WINDOWS>cd \

            C:\>help
            For more information on a specific command, type HELP command-name
            ASSOC    Displays or modifies file extension associations.
            AT       Schedules commands and programs to run on a computer.
            ATTRIB   Displays or changes file attributes.
            BREAK    Sets or clears extended CTRL+C checking.
            CACLS    Displays or modifies access control lists (ACLs) of files.
            CALL     Calls one batch program from another.
            CD       Displays the name of or changes the current directory.
            CHCP     Displays or sets the active code page number.
            CHDIR    Displays the name of or changes the current directory.
            CHKDSK   Checks a disk and displays a status report.
            CHKNTFS  Displays or modifies the checking of disk at boot time.
            CLS      Clears the screen.
            CMD      Starts a new instance of the Windows command interpreter.
            COLOR    Sets the default console foreground and background colors.
            COMP     Compares the contents of two files or sets of files.
            COMPACT  Displays or alters the compression of files on NTFS partitions.
            CONVERT  Converts FAT volumes to NTFS.  You cannot convert the
                     current drive.
            COPY     Copies one or more files to another location.
            DATE     Displays or sets the date.
            DEL      Deletes one or more files.
            DIR      Displays a list of files and subdirectories in a directory.
            DISKCOMP Compares the contents of two floppy disks.
            DISKCOPY Copies the contents of one floppy disk to another.
            DOSKEY   Edits command lines, recalls Windows commands, and creates macros.
            ECHO     Displays messages, or turns command echoing on or off.
            ENDLOCAL Ends localization of environment changes in a batch file.
            ERASE    Deletes one or more files.
            EXIT     Quits the CMD.EXE program (command interpreter).
            FC       Compares two files or sets of files, and displays the differences
                     between them.
            FIND     Searches for a text string in a file or files.
            FINDSTR  Searches for strings in files.
            FOR      Runs a specified command for each file in a set of files.
            FORMAT   Formats a disk for use with Windows.
            FTYPE    Displays or modifies file types used in file extension associations.
            GOTO     Directs the Windows command interpreter to a labeled line in a
                     batch program.
            GRAFTABL Enables Windows to display an extended character set in graphics
                     mode.
            HELP     Provides Help information for Windows commands.
            IF       Performs conditional processing in batch programs.
            LABEL    Creates, changes, or deletes the volume label of a disk.
            MD       Creates a directory.
            MKDIR    Creates a directory.
            MODE     Configures a system device.
            MORE     Displays output one screen at a time.
            MOVE     Moves one or more files from one directory to another directory.
            PATH     Displays or sets a search path for executable files.
            PAUSE    Suspends processing of a batch file and displays a message.
            POPD     Restores the previous value of the current directory saved by PUSHD.
            PRINT    Prints a text file.
            PROMPT   Changes the Windows command prompt.
            PUSHD    Saves the current directory then changes it.
            RD       Removes a directory.
            RECOVER  Recovers readable information from a bad or defective disk.
            REM      Records comments (remarks) in batch files or CONFIG.SYS.
            REN      Renames a file or files.
            RENAME   Renames a file or files.
            REPLACE  Replaces files.
            RMDIR    Removes a directory.
            SET      Displays, sets, or removes Windows environment variables.
            SETLOCAL Begins localization of environment changes in a batch file.
            SHIFT    Shifts the position of replaceable parameters in batch files.
            SORT     Sorts input.
            START    Starts a separate window to run a specified program or command.
            SUBST    Associates a path with a drive letter.
            TIME     Displays or sets the system time.
            TITLE    Sets the window title for a CMD.EXE session.
            TREE     Graphically displays the directory structure of a drive or path.
            TYPE     Displays the contents of a text file.
            VER      Displays the Windows version.
            VERIFY   Tells Windows whether to verify that your files are written
                     correctly to a disk.
            VOL      Displays a disk volume label and serial number.
            XCOPY    Copies files and directory trees.

            C:\>

            Dias de verano

            • Guest
            Re: Dos command..
            « Reply #13 on: February 22, 2009, 03:00:42 AM »
            Billrich, his post specifically states he must NOT change directories! Are you trying mischievously trying to flunk his assignment for him?  :)

            billrich

            • Guest
            Re: Dos command..
            « Reply #14 on: February 22, 2009, 03:20:51 AM »
            C:\>dir /w  C:\WINDOWS\*.exe
             Volume in drive C has no label.
             Volume Serial Number is B8F2-4B99

             Directory of C:\WINDOWS

            explorer.exe   hh.exe         IsUninst.exe   notepad.exe    regedit.exe    slrundll.exe
            TASKMAN.EXE    twunk_16.exe   twunk_32.exe   winhelp.exe    winhlp32.exe
                          11 File(s)      2,227,506 bytes
                           0 Dir(s)   1,166,848,000 bytes free

            C:\>

            C:\>dir /?
            Displays a list of files and subdirectories in a directory.

            DIR [drive:][path][filename] [/A[[:]attributes]] [/B] [/C] [/D] [/L] [/N]
              [/O[[:]sortorder]] [/P] [/Q] [/S] [/T[[:]timefield]] [/W] [/X] [/4]

              [drive:][path][filename]
                          Specifies drive, directory, and/or files to list.

              /A          Displays files with specified attributes.
              attributes   D  Directories                R  Read-only files
                           H  Hidden files               A  Files ready for archiving
                           S  System files               -  Prefix meaning not
              /B          Uses bare format (no heading information or summary).
              /C          Display the thousand separator in file sizes.  This is the
                          default.  Use /-C to disable display of separator.
              /D          Same as wide but files are list sorted by column.
              /L          Uses lowercase.
              /N          New long list format where filenames are on the far right.
              /O          List by files in sorted order.
              sortorder    N  By name (alphabetic)       S  By size (smallest first)
                           E  By extension (alphabetic)  D  By date/time (oldest first)
                           G  Group directories first    -  Prefix to reverse order
              /P          Pauses after each screenful of information.
              /Q          Display the owner of the file.
              /S          Displays files in specified directory and all subdirectories.
              /T          Controls which time field displayed or used for sorting
              timefield   C  Creation
                          A  Last Access
                          W  Last Written
              /W          Uses wide list format.
              /X          This displays the short names generated for non-8dot3 file
                          names.  The format is that of /N with the short name inserted
                          before the long name. If no short name is present, blanks are
                          displayed in its place.
              /4          Displays four-digit years

            Switches may be preset in the DIRCMD environment variable.  Override
            preset switches by prefixing any switch with - (hyphen)--for example, /-W.

            C:\>