Congratulations to AcaCandy on her 100,000th post!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen boot bsod computer connection crash css dell driver drivers email error ethernet excel firefox firefox 3 game hard drive internet internet explorer itunes laptop linux malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express partition password problem router security slow software sound trojan usb video virus vista wifi windows windows xp wireless
DOS/PDA/Other
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Operating Systems > DOS/PDA/Other >
[Solved] dos commands


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
bobh21uk's Avatar
Junior Member with 3 posts.
 
Join Date: Mar 2004
11-Mar-2004, 07:02 PM #1
dos commands
Hi all, I'm just starting an IT course and would be grateful for some help...Question. A path of C:\DOS;C:\WINDOWS exists on the computer. You type in the command CHECKIT and the file CHECKIT.TXT exists in the C:\WINDOWS directory. Explain the steps the computer would go through to try and interpret this command and also what the final result would be....BE needing your help again soon probably....lol
brushmaster1's Avatar
Distinguished Member with 3,477 posts.
 
Join Date: Jun 2002
Location: Lakewood, Colorado
Experience: Advanced, but still learn
11-Mar-2004, 07:34 PM #2
Actually, the result would be "BAD COMMAND OR FILE NAME"... a .TXT file is not executable.
Rockn's Avatar
Computer Specs
Distinguished Member with 17,888 posts.
 
Join Date: Jul 2001
Location: Mexico of the North, MN
Experience: Disenfranchised American Male
12-Mar-2004, 03:18 PM #3
It's not a system command is why it will not work. It has to be a part of the command interpereter or you will egt the message brushmaster stated.
cpuhack.com's Avatar
Senior Member with 254 posts.
 
Join Date: Apr 2002
Location: Iowa
Experience: Einstein
13-Mar-2004, 09:44 PM #4
lol, sounds like the cert courses have some trick ?'s...
bobh21uk's Avatar
Junior Member with 3 posts.
 
Join Date: Mar 2004
14-Mar-2004, 06:51 AM #5
Thanks.....But what steps does the computer go through to interpret his command....Does it just search through the windows and dos directories.....
brushmaster1's Avatar
Distinguished Member with 3,477 posts.
 
Join Date: Jun 2002
Location: Lakewood, Colorado
Experience: Advanced, but still learn
14-Mar-2004, 10:47 AM #6
I'm not sure it goes through any steps beyond being incapable of executing a non-executable file. I think when you hit enter, DOS looks to see if what you typed at the prompt is executable, and then goes no further.

...I could be wrong on this.
AbvAvgUser's Avatar
Distinguished Member with 2,313 posts.
 
Join Date: Oct 2002
Location: Mumbai, India
Experience: Intermediate
20-Mar-2004, 01:01 AM #7
I agree with brushmaster1.

1. First DOS checks to see if it is an executable file.
2. If it is, then it first goes thru the current directory.
3. If it is not found there, it will see the first directory mentioned in the path variable.
4. If its not in first, then it looks for it in second and so on.

If it is not an executable file, it gives an error "Bad Command or File Name".
__________________
Domains, web hosting, websites
bobh21uk's Avatar
Junior Member with 3 posts.
 
Join Date: Mar 2004
20-Mar-2004, 06:38 AM #8
I Understand now. Thanks for your help guys. I'll be back soon with more problems.
AbvAvgUser's Avatar
Distinguished Member with 2,313 posts.
 
Join Date: Oct 2002
Location: Mumbai, India
Experience: Intermediate
22-Mar-2004, 01:09 AM #9
You are welcome. Looking forward to solving some more DOS problems. There are very few people who are still interested in DOS
oabrar's Avatar
Junior Member with 1 posts.
 
Join Date: May 2004
Experience: Beginner
25-May-2004, 06:11 AM #10
Quote:
Originally Posted by bobh21uk
Hi all, I'm just starting an IT course and would be grateful for some help...Question. A path of C:\DOS;C:\WINDOWS exists on the computer. You type in the command CHECKIT and the file CHECKIT.TXT exists in the C:\WINDOWS directory. Explain the steps the computer would go through to try and interpret this command and also what the final result would be....BE needing your help again soon probably....lol
AbvAvgUser's Avatar
Distinguished Member with 2,313 posts.
 
Join Date: Oct 2002
Location: Mumbai, India
Experience: Intermediate
26-May-2004, 02:08 AM #11
Its a .txt file and therefore cannot be executed or run in DOS. DOS can run only .exe, .com and .bat files. Steps the computer would go thru are as follows

1. It will first check if it is a DOS command to be run from memory.

2. If it isn't then, in the current directory It will look for a file called checkit.exe. If not found, look for checkit.com. If still not found look for checkit.bat. (I am not too sure which type it looks for first. May be it looks for .com first and then .exe or some other sequence. Will have to try this out).

3. If none of the files are found in the current directory, it will look for them in the same sequence in C:\DOS.

4. If it is not found even there, then it will look for them in C:\Windows.

5. If it is not found even there, it will display a message of Bad Command or File Name.

The later part of the error message is applicable here. It is just a file name. In DOS, trying to open a file doesn't automatically open the corresponding application and that is why only command or executable files (.exe, .com and .bat) can be run.
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 03:23 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.