What Is The "type" Command? - I need help

free web hosting
Free Web Hosting, No Ads > CONTRIBUTE > Computers

What Is The "type" Command? - I need help

wild20
I had one of those scandisk errors on my computer. It found a problem and said it would clean the disk, but to make an undo disk. I put in a floppy disk (don't say it), and then had it put on an undo in case it messed up something. It said I could use the TYPE command to view the files that it needed to remove/clean. What is the TYPE command.

Reply

Unregistered 015
It might be helpful if you said what operating system are you using??

Reply

Galahad
type is an system DOS command, that displays contents of file you give as a parameter. It's usage is quite simple, and it goes like this:

CODE

type somefile.txt



It is usefull on systems, where edit is not present, and you need to view some files contents. If the file is longer than 24 screen lines (as it may be the case with scandisk log file, in your case) of text, you should add |more option, like this:

CODE

type somefile.txt |more



Using this option will pause after each full screem of contents, and wait for key press, to display next screen of information from the file. Using type to display contents of some file other than plain text, doesn't make much sense, since many characters will not be displayed, or not displayed correctly. Anyways, I'm going into deep explanations laugh.gif type is a system command, built into DOS command interpreter, command.com. You can try it on any Windows, by going to command (or MS-DOS) prompt.

 

 

 


Reply

Aton
QUOTE(Galahad @ Jan 20 2006, 09:36 AM)
type is an system DOS command, that displays contents of file you give as a parameter. It's usage is quite simple, and it goes like this:
CODE

type somefile.txt

It is usefull on systems, where edit is not present, and you need to view some files contents. If the file is longer than 24 screen lines (as it may be the case with scandisk log file, in your case) of text, you should add |more option, like this:
CODE

type somefile.txt |more

Using this option will pause after each full screem of contents, and wait for key press, to display next screen of information from the file. Using type to display contents of some file other than plain text, doesn't make much sense, since many characters will not be displayed, or not displayed correctly. Anyways, I'm going into deep explanations laugh.gif type is a system command, built into DOS command interpreter, command.com. You can try it on any Windows, by going to command (or MS-DOS) prompt.
*



Type changes what program is associated with each extension
it is used with the asscoc command usualy
also you do not ned to type in gjg.txt, you only need to type in "txt"

Notice from snlildude87:
Why did you change the quote tag to the italics tag? To gain more credits?

*credits adjusted*

Reply

Aton
QUOTE(wild20 @ Jan 19 2006, 01:36 PM)
I had one of those scandisk errors on my computer.  It found a problem and said it would clean the disk, but to make an undo disk.  I put in a floppy disk (don't say it), and then had it put on an undo in case it messed up something.  It said I could use the TYPE command to view the files that it needed to remove/clean.  What is the TYPE command.
*



It's odd that it tells you to use the type command. Maybe i'm just used to my own scandisk, but it's still odd.

Reply

wild20
Okay thanks guys. This helps a lot. I will try it. I don't even know what the file is, but the computer works fine still. I just would like to know because I don't know what the file is. The Operating System is actually a 95 Windows. laugh.gif

Reply

Galahad
QUOTE(Aton @ Jan 20 2006, 07:52 PM)
Type changes what program is associated with each extension
it is used with the asscoc command usualy
also you do not ned to type in gjg.txt, you only need to type in "txt"
*



Type changes what program is associated with each extension? I think you confused TYPE command, for FILE TYPE ASSOCIATION... Two completely different things...

Maybe it's my fault, TYPE is a system DOS command, that was introduced while MS-DOS was the underlaying operating system, and Windows was just a user program. If you are not in windows, you can't use notepad, or some other editor. You have to use EDIT, if it is present. If it's not (and that happens to be the case, on most rescue disks), you have to use TYPE command, to see its contents

QUOTE(wild20 @ Jan 22 2006, 07:58 PM)
Okay thanks guys.  This helps a lot.  I will try it.  I don't even know what the file is, but the computer works fine still.  I just would like to know because I don't know what the file is.  The Operating System is actually a 95 Windows. laugh.gif
*



The file is probably a summary of scandisk report, maybe a list of files, who knows. It probably contains, for you, useless information about which files were repaird, maybe info about lost chains... But it is a text file, generated to inform you of things scandisk did, nothing else. You are safe to view it smile.gif

I'm glad if I helped in any way smile.gif

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : command

  1. Delete A Bunch Of Files Using Dos Statement - DOS Delete Command (4)



Looking for type, command

Searching Video's for type, command
advertisement



What Is The "type" Command? - I need help



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE