> in windows shell command

We can export result of command in windows shell into a file using > command.

say if we need to extract existing file in a  directory we just simply put this command on windows shell

dir *.* > C:\filelist.txt

if we want to display all file and subdirectory we just need to setting dir parameters as we want, say the example like this  : (you can change dir setting for display hidden etc )

dir /S /O:EGN >filelist.txt

you even can use this command to save help for dir into a file

dir /? > dirhelp.txt

if we want to save a text into a file we can use echo command

echo dewa pribadi > friend.txt

3 comments so far

  1. Welly on

    kalo ingin menambahkan isi dari filelist.txt bisa pakai dir *.* >>filelist.txt

    trims .. n salam kenal pak welly ..

  2. Hilman on

    Sing mlebu web/blog aq ge kata kunci sing aneh aneh cek ketipu😀 .
    ngetes Ilmu Seo Uarak uarik😀
    yaitu dg memasukan beberapa keyword namun masih berhubungan (gudu scam)

  3. agusgunawan on

    kyai bantu sya kyai.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: