Jump to content

Msdos'ta Text Dosyanın Sonuna Yazı Ekleme


shaolin
 Share

Recommended Posts

Harddiskte bir text dosyam var.

 

MS-DOS komut ortamında bir komut vererek bu text dosyanın sonuna nasıl yazı ilave edebilirim?

 

 

Dosya içeriği

 

ayar=1

deneme= kapali

sol= 2

guvenlik= kapali

                           ------>   İşte bu satıra komut ile yazı eklemem lazım.

Link to comment
Share on other sites

Eğer ekletmek istediğiniz satırlar bir programın çıktısı ise porgramı çalıştırırken; sonuna >dosyaadi.txt ekleyerek direk çıktıyı dosyaya verebilirsiniz.

Fakat siz olan dosyanın son satırına eklemek isterseniz çift büyüktür işareti ile yani >>dosyaadi.txt parametresini eklemelisiniz.

Örneklemek gerekir ise

 

dir *.* >output.txt 

(Bu komut dir ile alınan listenin çıktısını output.txt dosyasına yönlendirir.)

 

dir *.* >>output.txt

(Bu komut ise yukarıdakinden farklı olarak mevcut olan output.txt dosyasının sonuna sonucu ekler)

 

Ben soruyu farklı anlamışım arkadaş cevaplamış zaten :)

 

farklı bir yöntem olarakda 

 

echo mesaj >>dosyaadi.txt   komutuda olabilir

Edited by gokhankocabay
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...