MS-DOS

Moderators: blip
Number of threads: 362
Number of posts: 872

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Please help me i am beginner Posted by urzammar on 28 Sept 2006 at 11:24 AM
1 Write a single dos command that writes all lines having a single word of input.txt to output.txt. (Input.txt is in the subdirectory input files and output.txt is in the C drive)
For example
input.txt
hello
I m doing my 2nd assignment
difficult
tough
that is all I can say

output.txt
hello
difficult
tough


2 single dos command that converts all text files to document files. (In the same directory)

3 Write a single dos command to copy text files having name which have second character a and end on characterd to a subdirectory xyz in your C drive.
For eg
bad.txt
sand.txt






Report
Re: Please help me i am beginner Posted by anthrax11 on 28 Sept 2006 at 11:45 AM
: 1 Write a single dos command that writes all lines having a single word of input.txt to output.txt. (Input.txt is in the subdirectory input files and output.txt is in the C drive)
: For example
: input.txt
: hello
: I m doing my 2nd assignment
: difficult
: tough
: that is all I can say
:
: output.txt
: hello
: difficult
: tough
:
Don`t know

: 2 single dos command that converts all text files to document files. (In the same directory)

ren *.txt *.doc
:
: 3 Write a single dos command to copy text files having name which have second character a and end on characterd to a subdirectory xyz in your C drive.
: For eg
: bad.txt
: sand.txt
:
xcopy ?a*d.txt c:\xyz\
Report
Re: Please help me i am beginner Posted by urzammar on 4 Oct 2006 at 12:04 AM
Thanks buddy



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.