Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Please help me i am beginner

urzammarurzammar Member Posts: 2
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






Comments

  • anthrax11anthrax11 Member Posts: 511
    : 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
    :
    [green]Don`t know[/green]

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

    [green]ren *.txt *.doc[/green]
    :
    : 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
    :
    [green]xcopy ?a*d.txt c:xyz[/green]
  • urzammarurzammar Member Posts: 2
    Thanks buddy
Sign In or Register to comment.