Sei sulla pagina 1di 23

TRICKS IN

COMMAND PROMPT

By Giovanni Estrada
Command Prompt is a command line interpreter
application used to execute entered commands.

Most of those commands are used to automate tasks via


scripts and batch files, perform advanced administrative
functions, and troubleshoot and solve certain kinds of
Windows issues.
The first thing that we are going to do is to enter as
administrator in cmd.
See the contents inside a folder
We can see what folders are inside the directory that we
actually are by typing

dir

This command show us a list of the elements inside the


directory.

Lets see an example


Going to a directory
To go to any directory you just have to type cd followed
by the directory between quotation marks.

cd directory

Let see an example:


Going to the top of the directory
tree
To go to the top of the directory tree (In this case the C:
drive) you just have to type

cd\
To create a folder do the next:
Just type

md name_of_the_folder\

Where name_of_the_folder is replaced for the folder


desired name.

Lets see an example


To create an undeleatable folder
do the next
1. Go to the directory you want to create that folder
2. Type

md con\

Lets see an example


After this, you cant
delete\cut\rename
the current
folder

By the usual
way
To remove an undeleatable folder
do the next:
Just type

rd con\

In the directory where you


created the undeleatable folder.
To turn the computer off you can type the next
command:
shutdown -s

To reboot the computer you can type the next command:


shutdown -r

To log off the computer you can type the next command:
shutdown -l
To set a timer to shutdown PC
Just type

shutdown -s -t 123

where 123 can be replaced for the time in seconds that


you want to be turned your pc off.
Put a message that appears when your
pc is turning off.

To do this type the next command

shutdown -s -t 500 -c"Your message

Where 500 can be replaced for the time that you want in
seconds and then, put your message between quotation
marks.
To hide a folder
For hiding a folder just type

attrib +s +h directory

Where directory is replaced by the full path of your folder.

Lets see an example


To unhide a folder
To unhide the folder change the plus signs to minus signs
of the latter command.

attrib -s -h directory

Lets see an example


How to convert images to ASCII
files.
Step 1: Choose the desired image.

Step 2: Go to
http://www.text-image.com/convert/ascii.html
Look for the image previously selected by clicking on Seleccionar
archivo.

After that click on convert!


Wait a moment while your file is
being converted
And Ta-da!!!!!

Your ASCCI image is


ready to get copied to
a notepad file.
After copied to a notepad, at
the beginning of the
document type the next code:

@echo off
color 0a
title Smiley
echo Smiley

Then at the beginning of each


of the rest of the lines just
type echo.

And at the end write pause >nul


Save the document as anything.bat selecting All files
in the box below of the box of the name and then go to
the directory you saved it and open it, then youll see
magic.

Potrebbero piacerti anche