shaolin Posted December 6, 2013 Share Posted December 6, 2013 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. Quote Link to comment Share on other sites More sharing options...
by1969 Posted December 6, 2013 Share Posted December 6, 2013 (edited) S.A copy dosya.txt + con ---> komuteklenecek satır --->eklenecek satır^z --->bu Ctrl+z komuttan çıkış Edited December 6, 2013 by by1969 Quote Link to comment Share on other sites More sharing options...
gokhankocabay Posted December 6, 2013 Share Posted December 6, 2013 (edited) 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 December 6, 2013 by gokhankocabay Quote Link to comment Share on other sites More sharing options...
shaolin Posted December 6, 2013 Author Share Posted December 6, 2013 Cevaplar için teşekkürler. copy file1+file2 komutu ile işimi gördü. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.