Sunday, 2 August 2020

HOW TO BACKUP YOUR ALL DIRECTORY IN YOUR COMPUTER AND FILE NAMES:-

HOW TO BACKUP YOUR ALL DIRECTORY IN YOUR COMPUTER AND FILE NAMES:-

 Syntax 
  
  tree  /f

Description:-

Displays names of files in a directory, subdirectory files 

Example:-

tree  /f    >   c:\main\files.txt

/f = list all files in directory and sub directory.

> Re-direct all diretory and subdirectory files to "files.txt"
open  in notepad and check directory tree.

Sample Programme:-

@echo off

:: useful to take backup how many directory present in your computer 
:: useful to take number of files names present in your computer

c:\bat\ tree /f > test.txt :: to creat file and store
or
c:\bat\ tree /f >> test.txt

::display all directory and filenames after c:\bat directory
exit
-----------------------

No comments:

Post a Comment

HOW TO BACKUP YOUR ALL DIRECTORY IN YOUR COMPUTER AND FILE NAMES:-

HOW TO BACKUP YOUR ALL DIRECTORY IN YOUR COMPUTER AND FILE NAMES:-   Syntax         tree   /f Description:- Displays names of files in a dir...