-->

Windows important Commands

IMPORTANT COMMANDS IN WINDOWS




important commands:-

1.mkdir = make directory



2.Rename a file:-

Rename filename.txt newname.txt


3.Create file:-                                                                        dir /b = (view only file name)
type nul  >  filename.txt

                                                                                              *.txt is s spefic file formate
4.Deleting file 
del hello.txt                                                                             *.* is a complete all files moved

5.move files
move hello.txt D:\Test\sakthi

change file in to folder name :- move /y D:\test\bus 1.txt, 1.pptx








6.Remove folder
rmdir /s  Homework

6.Copy Files & Folder
copy hello.txt D:\Test = destination folder

or

copying all files  c*.* <destination folder>
moving all files c*.* <destination folder>
 

or

copy *.txt c:\test  it is a seperate file formate copy 


bulk copy filename in notepad dir /b >copy.txt

  
copy seperate files in same folder for %I in (Filename1.txt filename2.txt) do copy %I D:\Test\app
move seperate files in same folder for %I in (Filename1.txt filename2.txt) do move %I D:\Test\app
seperate folder move  for %I in (sakthi) do move %I D:\test\bus
seperate folder copy  for %I in (sakthi) do copy %I D:\test\bus
if you copy two folder :- for %I in (app bus) do copy %I D:\tesst\allfiles
if you move two folder :- for %I in (app bus) do move %I D:\tesst\allfiles




another method :- robocopy D:\Test D:\Test\app filename1.txt filename2.txt


xcopy D:\test D:\test\bus (all files are copy)


copy all total files robocopy D:\Teest D:\Test\sakthi (complete all files and folder copied)