Computer Hope
Microsoft => Microsoft DOS => Topic started by: cbegarly on February 20, 2009, 04:20:12 PM
-
[/color ???
How do I issue the command, through Dos for \windows directory .EXE files?
-
Please write more clearly what you want to know. In English.
-
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!!.
-
Have you tried to do it? If you had been paying attention in class, this should be very easy for you.
-
Thanks for the help!
-
Thanks for the help!
I have a feeling there was an implied " >:(" at the end of that.
-
Thanks for the help!
I have a feeling there was an implied " >:(" at the end of that.
I have to agree....
-
Do you think I should have done his homework for him?
-
Do you think I should have done his homework for him?
Yes, but then call his professor and give him this link ;).
-
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...
-
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.
-
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.
-
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:\>
-
Billrich, his post specifically states he must NOT change directories! Are you trying mischievously trying to flunk his assignment for him? :)
-
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:\>
-
Billrich, you did know we have a policy of NOT doing people's homework for them? Or is that you just don't care?
-
Dias DE verano wrote: Posted on: Today at 03:47:43 AM
<<<"Billrich, you did know we have a policy of NOT doing people's homework for them?">>>
Dias de Verano, I'm new to the DOS area and have read no rules about homework? Where are those rules written? How do we know a question is homework? Is Dias de Verano a Professor of Hope?
Bill in OKC
-
How do we know a question is homework?
By reading it carefully
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.
-
Posted by: Dias de verano
<<<"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.">>>>
I cannot find the rules that a Hope.com member is not allowed to answer the question. Please give me a link to the rules.
Bill in OKC
-
Actually, it's more like an advisory...
http://www.computerhope.com/forum/index.php?topic=33323.0
-
We try not to help with homework. If this is what you are after, please at least be honest and don't try to hide the purpose for the question. Honesty sometimes gets results!
There?
-
billrich
At the top of ever forum is a post titled "Please Read This First"
Here is a link in case you missed it.
http://www.computerhope.com/forum/index.php/topic,33325.0.html
It doesn't say we won't help with home work it just we try not to because if we tell you how to do it you won't figure it out for your self and learn it
-
I also recommend using the quote tag rather then a semi-newsgroup quote format.
-
CD \WINDOWS
DIR *.EXE
-
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.
Geek-9PM gave you a good start. Now you have to figure out how to do the same thing in wide format and without changing directories
-
GuruGary,
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,171,197,952 bytes free
C:\>
-
yes, that's very nice billrich, but I think GuruGary was referring to cbegarly.
Giving a person the answer to something like this isn't helping them.
-
Giving a person the answer to something like this isn't helping them.
He's been told that a few times already, but seems to think he knows better. Still with that level of "help", the OP should flunk nicely.
-
Dias de verano wrote:
<<<<"He's been told that a few times already, but seems to think he knows better. Still with that level of "help", the OP should flunk nicely.">>>
Bill explains:
The original person will do much better on the test. The original person now knows the answer.
-
The original person will do much better on the test. The original person now knows the answer.
But how did he or she get the answer? The original poster will have made no mental effort, and will have therefore not learned very much, thus defeating the purpose of the school test, which is why we don't like to do people's homework for them.
-
It's that old saying. They've been given a fish, not taught how to catch them.
one answer on a test correct generally isn't regarded as "good", anyway.
-
Jesus should have taught the 5000 people how to fish?
BC,
<<"The feeding of the five thousand has always been one of the most memorable biblical miracles. Although perhaps not as world-changing as the raising of the dead, this apparently practical response to the physical needs of a crowd and the description of how it was done make it a wonderful story. Jesus does not stand over the meager loaves and fishes, then magically transform them into a banquet for thousands. Instead, he starts to break the bread and divide the fish and hand them to the crowd. But as he prays, the bread keeps breaking and the fish keeps dividing until everyone is fed. It sounds like a kind of miraculous sleight of hand.
The original account can be found in the Gospel of Mark">>>
-
I was in no way referencing the bible.
-
BC wrote:
"One answer on a test correct generally isn't regarded as "good", anyway.'
BC wrote:
"Giving a person the answer to something like this isn't helping them."
I'm sure you are right we don't help the students by doing their homework.
How do we help the students? Provide a link to one of your posts where you helped a student.
Or provide a link to any post where someone on this board helped a student?
Bill in OKC
-
Give me a link to a post where I imply I have any desire to continue this fruitless discussion.
The fact is a question like this should not require help- referring to notes or previous course exercises.
The reason most of us don't end up assisting students is because they are so terse as to make their particular specifications unclear, and generally regard only full source for their homework as assisting- a view you obviously share.
The fact is- extending this method of assistance beyond batch- show a person a quick-sort routine, and will they instantly understand the algorithm behind it? Probably not. Explain the algorithm behind it exhaustively, and will they be able to write it? Yes. That is what I mean.
help a person with math- do you just give them the answer? No. you explain the mechanics behind arriving at that answer. The idea is helping a student should consist of doing everything but answer the question for them; let them take each logical step.
In an instance such as this the solution is so simple and easily google it is merely a waste of our time to assist in any way but to refer them to their course material, which I would assume would be built properly to teach them how to perform tasks in questions posed later on during the course.
the original poster hasn't even SEEN your post, so how it helped them is beyond me:
Last Active: February 21, 2009, 07:09:36 AM
Posted on: February 22, 2009, 01:48:09 AM