Sei sulla pagina 1di 4

How to make a directory

D:\>md ankit
D:\>cd ankit
D:\ankit>cd\
D:\>dir
Volume in drive D has no label.
Volume Serial Number is 5E6D-67D2
Directory of D:\
09/05/2013 04:25 PM <DIR>
ankit
08/27/2013 04:17 PM <DIR>
Movies
0 File(s)
0 bytes
2 Dir(s) 312,098,586,624 bytes free
D:\>
How to delete a directory
D:\>rd ankit
D:\>dir
Volume in drive D has no label.
Volume Serial Number is 5E6D-67D2
Directory of D:\
09/05/2013 04:41 PM
34 ank.bat
09/05/2013 04:41 PM
34 anki.bat
08/27/2013 04:17 PM <DIR>
Movies
2 File(s)
68 bytes
1 Dir(s) 312,098,586,624 bytes free
D:\>
How to make a file
D:\>copy con anki
this an assignment of IT.
^Z
1 file(s) copied.
D:\>dir
Volume in drive D has no label.
Volume Serial Number is 5E6D-67D2

Directory of D:\
09/05/2013 04:31 PM
27 anki
09/05/2013 04:25 PM <DIR>
ankit
08/27/2013 04:17 PM <DIR>
Movies
1 File(s)
27 bytes
2 Dir(s) 312,098,586,624 bytes free
D:\>
How to open a file
D:\>type anki
this an assignment of IT.
D:\>
How to delete a file
D:\>del anki
D:\>dir
Volume in drive D has no label.
Volume Serial Number is 5E6D-67D2
Directory of D:\
09/05/2013 04:25 PM <DIR>
ankit
08/27/2013 04:17 PM <DIR>
Movies
0 File(s)
0 bytes
2 Dir(s) 312,098,586,624 bytes free
D:\>
How to create a batch file
D:\>copy con anki.bat
date
time
version
volume
dir
^Z
D:\>dir
Volume in drive D has no label.
Volume Serial Number is 5E6D-67D2
Directory of D:\

09/05/2013 04:41 PM
34 anki.bat
09/05/2013 04:25 PM <DIR>
ankit
08/27/2013 04:17 PM <DIR>
Movies
1 File(s)
34 bytes
2 Dir(s) 312,098,586,624 bytes free
D:\>
1 file(s) copied.
How to open a batch file

D:\>anki
D:\>date
The current date is: Thu 09/05/2013
Enter the new date: (mm-dd-yy)
D:\>time
The current time is: 16:36:36.73
Enter the new time:
D:\>version
'version' is not recognized as an internal or external command,
operable program or batch file.
D:\>volume
'volume' is not recognized as an internal or external command,
operable program or batch file.
D:\>dir
Volume in drive D has no label.
Volume Serial Number is 5E6D-67D2
Directory of D:\
09/05/2013 04:36 PM
35 anki.bat
09/05/2013 04:25 PM <DIR>
ankit
08/27/2013 04:17 PM <DIR>
Movies
1 File(s)
35 bytes
2 Dir(s) 312,098,586,624 bytes free
D:\>
How to delete a batch file
D:\>del a*.*

D:\>dir
Volume in drive D has no label.
Volume Serial Number is 5E6D-67D2
Directory of D:\
09/05/2013 04:25 PM <DIR>
ankit
08/27/2013 04:17 PM <DIR>
Movies
0 File(s)
0 bytes
2 Dir(s) 312,098,586,624 bytes free
D:\>
How to copy a file
D:\>xcopy anki.bat ank.bat
Does ank.bat specify a file name
or directory name on the target
(F = file, D = directory)? f
D:anki.bat
1 File(s) copied
D:\>dir
Volume in drive D has no label.
Volume Serial Number is 5E6D-67D2
Directory of D:\
09/05/2013 04:41 PM
34 ank.bat
09/05/2013 04:41 PM
34 anki.bat
09/05/2013 04:25 PM <DIR>
ankit
08/27/2013 04:17 PM <DIR>
Movies
2 File(s)
68 bytes
2 Dir(s) 312,098,586,624 bytes free
D:\>
How to change prompt
D:\prompt $g
>prompt $$
$prompt $ankit
&nkitprompt $

Potrebbero piacerti anche