Friday, 28 November 2014

Command Prompt Tricks, Hacks and Codes

Command Prompt also known as cmd is one of the most important tool in the Windows operating system, it looks plain and confusing at first sight. But has so many functions that can save one from some unexpected issues, programmers and hardware specialist often refer back to the command prompt time to time.
You will find cool and awesome unknown features of the command prompt and some really good tricks that you can use to amuse your colleagues and friends.

Copy items on the command prompt:

Have you ever wondered how you can copy, stuffs you have on your command prompt screen.
Step 1:  Right click anywhere on your cmd screen
Step 2: Select Mark
Step 3: Highlight portion you will like to copy with the left mouse click and highlight.
Step 4: Press the Enter button to copy.
Step 5: Paste in any other valid document or program.
command prompt tricks

Star Wars Episode 4 Movie on CMD

This is any trick and fun thing with Command Prompt, an entire episode of star wars 4 can be watched on cmd, you will need to have an internet connection though to watch the movie.
Step 1: Open CMD and enter telnet towel.blinkenlights.nl
Step 2: Press enter to start watching the movie immediately.
For Windows Vista and above, you will need to add or activate Telnet Client, to do this open your control panel, click on Programs and features then Turn windows features on or off. Find Telnet Client and check it, click ok to activate.

Copy File Path from File Drop into CMD

If you need to get a file path easily, you can open cmd, type cd then drag and drop the file into cmd it will automatically display the file path your just dropped. This method prevents you from making silly mistakes that can cost you, your time.

To Shut Down your PC, you can do that with CMD

Step 1: Open cmd
Step 2: Type shutdown/i
Step 3: Press Enter, a dialog box for windows shutdown will appear.
Step 4; Choose your preferred option.
This method can be used in a network environment, you can display reason for shutdown and time remaining before shutdown commences.

Run a Two in One Command on cmd

You can run multiple Windows commands in one go from the command prompt. For example, you can start or stop a service from a command prompt by typing “Net Start/Stop.” What if you need to restart a service from the command prompt? In that case, you can use a double ampersand — && — which allows you to run multiple “Net” commands in one line to first stop and then restart the service.

Clear your Clipboard Item

This cool trick will clear all items on your clip board, your clipboard has tendency to eat up your memory space. To do this open cmd and type the command Echo Off and there you go. Press enter and you are fine.

Detect those Stealing your WiFi Connection

Command Prompt can let you know if someone is connected to your Local Area Connection and using it. Just follow the steps:-
1) Open your browser and visit http://192.168.1.1 or http://192.168.0.1 depending on your router.
2) Find the tab that mentions “Attached Devices” or something similar.
3) Find the computer name, IP address and MAC Address (sometimes called Physical Address or Hardware Address) of your computer using the previous trick.
4 )Compare it with those displayed by your router in Step 2.

Detect those connecting to your computer illegally

Command Prompt can help you find if someone you don’t know is connected to your computer stealing private data. Just execute netstat -a and the command prompt will return a list of computers that your computer is connected to.
In the results returned, Proto column gives the type of data transmission taking place (TCP or UDP) ,
Local address column gives the port with which your computer is connected to an external computer and the Foreign Address column gives the external computer you are connected to along with the port being used for the connection.
State gives the state of the connection (whether a connection is actually established, or waiting for transmission or is “Timed Out”).

Shortcut to run cmd as administrator

Search for cmd on the search bar, Press Ctrl+Shift+Enter and then click on the cmd icon to open as admin, this works for all documents and files on your PC.
Check your Network Information at a glance.
Open Command Prompt and execute ipconfig /all. This will give all information concerning your ip address, host, DHCP server and DNS information.

CMD function key shortcut commands.

F1: Pastes the last executed command (character by character)
F2: Pastes the last executed command (up to the entered character)
F3: Pastes the last executed command
F4: Deletes current prompt text up to the entered character
F5: Pastes recently executed commands (does not cycle)
F6: Pastes ^Z to the prompt
F7: Displays a selectable list of previously executed commands
F8: Pastes recently executed commands (cycles)
F9: Asks for the number of the command from the F7 list to paste

10 Super Cool Notepad Tricks, Hacks & Commands

Notepad is the simplest text editor provided by Microsoft in every version of Windows. It is helpful when we want to create a quick note. The files created by Notepad are saved in.txt format which is supported by every text editor. So, the files created by Notepad are compatible to open, edit and modify everywhere.
People generally consider Notepad simpler than what it is. But readers, Notepad is light-weight text-editor but saying it “simpler” would be wrong because it can open many unknown extensions files and Notepad itself hold many amazing commands, tricks and hacks to make it more productive for you.
Today, I am going to share 10 amazing Notepad Tricks & Hacks that you can use to get most out of Notepad and amaze your friends.
Notepad Tricks

1. Create Diary on Notepad

This Notepad trick will allow you to create Notepad note in such a format that whenever you edit your note, it will get saved with date and timestamp automatically. To do this, follow these steps:
  1. Open Notepad
  2. Type .LOG in first line.
  3. Save the file as Log.txt
  4. Now, write something to the file and it will automatically get saved with edited date and time.
Notepad LOG Trick

2. Create Fake Windows Errors With Notepad

This is another very cool Notepad trick that allows you to create Fake error messages. You can create Fake error message with any message. To do this, follow these steps:
  1. Open Notepad
  2. Type X=Msgbox(“Message Here”,0+16,”Title Here”)
  3. Replace Message Here and Title Here with your Error Message and Error-Window Title respectively.
  4. Save the file with error.vbs.
  5. Now, click the file and you’ll get your custom-made Windows error message.
notepad trick 2

3. Force Shutdown Your Windows

This trick will let you force shutdown your Windows in a single-click. So, if you don’t want to waste three clicks (Start >> Turn Off Computer >> Turn Off), this trick will help you in that. To do this:
  1. Open Notepad
  2. Paste @echo off in first line.
  3. Paste msg * Shutdown computer in second line.
  4. Paste shutdown -c “Sleep Tight” -s in third line
  5. Save the file with .BAT extension. For example, shutdown.bat
  6. Click on your file and it will automatically shutdown your Windows.
3rd Notepad Trick
You can imagine the disaster that may happen if you’ll put this file at Windows Startup ;)

4. Create Password-protected Folder using Notepad

Why to use any folder-locking software when your simple text editor, Notepad can lock your folders? To use this Notepad tricks, follow these steps:
  • Open Notepad
  • Copy the following code:
@ECHO OFF
title Folder Private
if EXIST “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” goto UNLOCK
if NOT EXIST Private goto MDLOCKER
:CONFIRM
echo Are you sure you want to lock the folder(Y/N)
set/p “cho=>”
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren Private “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
attrib +h +s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
echo Folder locked
goto End
:UNLOCK
echo Enter password to unlock folder
set/p “pass=>”
if NOT %pass%== techgyd.com goto FAIL
attrib -h -s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
ren “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” Private
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Private
echo Private created successfully
goto End
:End
  • techgyd.com written in red is password. Change it to your own password.
  • Save the file as private.bat with File Type As All Files (*.*).
  • Now, when you click private.bat, it will create a Private folder. Move your private files, documents and folders here.
  • Close Private folder.
  • Now, no one will be able to open the folder without the password.
Private

5. Make Computer To Speak Your Sentence

This Notepad trick will make computer to speak whatever you type in the provided text-box. To use this trick, follow these steps:
  1. Open Notepad
  2. Copy & paste this command:
Dim message, sapi
message=InputBox(“What do you want me to say?”,”Speak to Me”)
Set sapi=CreateObject(“sapi.spvoice”)
sapi.Speak message
 
  1.  Save the file as speak.vbs.
  2. Double-click the file and it will open a prompt. Enter the sentence you want your computer to speak
  3. Click OK and Notepad will speak the sentence for you.
Speak Notepad Trick
Note - In case, if you encounter error, re-type all the quotes and this notepad trick will work fine.

6. Make CD Drive Open & Close Again and again

This notepad prank will make your CD drive open and close again and again continually. To use this notepad trick, use these following steps:
  1. Open Notepad
  2. Enter following command:
Set oWMP = CreateObject(“WMPlayer.OCX.7″)
Set colCDROMs = oWMP.cdromCollection
do
if colCDROMs.Count >= 1 then
For i = 0 to colCDROMs.Count – 1
colCDROMs.Item(i).Eject
Next
For i = 0 to colCDROMs.Count – 1
colCDROMs.Item(i).Eject
Next
End If
wscript.sleep 5000
loop
  1. Save your notepad file as cdopen.vbs
  2. Now, open cdopen.vbs and it will start the process to continuously open and close CD drive.
To stop the process, open Task Manager by pressing Alt+Ctrl+Del and stop cdopen.vbs process.

7. Create Matrix Raining Code Screen

Have you watched the movie, “Matrix”? You might have seen string of green characters appearing at the screen randomly. We are going to do something similar with the help of Notepad. To use this Notepad trick, follow these steps:
  1. Open Notepad.
  2. Type this command:
@echo off
color 02
:start
echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%
goto start
  1. Save the file as Matrix.bat
  2. Click on Matrix.bat and the show begins.
matrix

Alternatively, you can use this code for different effect:
@echo off
:a
color 2
echo 1 1 1 0 1 0 0 0 1 1 1 1 0 0 0 1 1 0 0 1 0 0 0 1 1 0 1 0 1 0 0 0 1 1 1 1
ping localhost -n 1 > nul
echo 1 1 0 1 1 1 0 0 0 1 0 1 a f h 0 0 0 1 0 1 1 0 0 1 1 1 0 0 1 0 1 0 0 1 1 0
echo 1 0 0 1 1 0 9 8 1 2 0 1 9 9 2 1 1 1 0 0 1 0 1 1 1 0 1 1 0 1 0 0 0 1 0 1 1
ping localhost -n 1 > nul
echo 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 1 0 0 1 0 1 0 1 1 0 1 0 0 0 01 0 1 0 0 1 0
ping localhost -n 1 > nul
echo 1 0 1 1 1 0 1 1 0 9 1 1 2 1 1 0 9 1 0 5 7 7 8 7 8 1 3 2 1 2 1 2 3 2 1 3 4
ping localhost -n 1 > nul
echo 1 1 1 0 1 0 0 1 0 0 0 1 1 1 0 0 1 1 1 4 1 2 1 1 2 0 1 0 1 2 2 1 0 1 1 0 1
goto a
Source: Wikihow

8. Make Your Keyboard LED Dance

Your keyboard has three LEDs above numpad of Scroll Lock, Caps Lock and Num Lock. This Notepad trick will make those three LED continually on and off, creating dancing effects. To do this, follow these steps:
  1. Open Notepad
  2. Enter following code
Set wshShell =wscript.CreateObject(“WScript.Shell”)
do
wscript.sleep 100
wshshell.sendkeys “{CAPSLOCK}”
wshshell.sendkeys “{NUMLOCK}”
wshshell.sendkeys “{SCROLLLOCK}”
loop
  1. Save the file as Dance.vbs
  2. Click the file and your all three LED lights will start dancing.
To stop, Shut down or Log off your PC.
12430-img3379s

9. EICAR Test File: Test Your Antivirus

Do you want to check if your Antivirus’ real-time protection is working correctly or not? Then this European Institute for Computer Antivirus Research (EICAR) code will help you in that.
  1. Open Notepad
  2. Copy this code: X5O!P%@AP[4PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*
  3. Save the with .COM extension. For example, testantivirus.com
If your antivirus’ real-time protection is working perfectly, it will show you alert and quarantine the file by considering it malware.
antivirus test

10. Bush Hid The Facts

This is very simple but the most popular Notepad trick. To use this notepad trick, follow these steps:
  1. Open Notepad
  2. Type BUSH HID THE FACTS
  3. Save that file
  4. Open it again & see. Amazing?
Alternatively, you can use this app can break.
4-3-3-5 notepad trick
What happens?
You might have seen that reopening the file will get show you some unicode characters instead of what you typed (Bush hid the facts or this app can break).
Why this happens?
Both the patterns have characters string of length 4-3-3-5 which seems to cause bug in Windows PC. So, this trick works ;)

Wednesday, 1 October 2014

Change Service Pack 2 To 3

How we can change service pack 2 to 3!!..

Change your XP service pack 2 to 3 without installation

change windows XP service pack 2 to service pack 3 without any installation or formatting.

Follow  the simple steps.


Step 1: Run Regedit by Clicking on Start -> Run , type in regedit and press enter

Step 2: Make a backup of your registry (just in case)

Step 3: Browse to "HKEY_LOCAL_MACHINE\SYSTEM\ CurrentControlSet\ Control\ Windows"

Step 4: Modify the value of "CSDVersion" from "0x00000200" (SP2) to the Windows XP SP3 value of "0x00000300"

Step 5: Close registry editor

Step 6: Reboot

Hope It Helps!!!

Do it very care fully ……

Undeletable Folder In Cmd



Undeletable Folder In Cmd

1.Click on Start.

2.Click on Run. Type in "cmd" without quotes.

3.In the Command Prompt Window that opens, type the name of the drive you wish to create your folder in the format <drive-name>: and press Enter. e.g. If you wish to create the undeletable folder in D drive, type "D:" without the quotes. Note that the folder cannot be created in the root of C:/ drive (if C: is your system drive).

4.Type this command- "md con\" or "md lpt1\" without the quotes and press Enter. You can choose any of the keywords given above as the name of your folder.

Hard Drive Gone Bad

The most common problems originate
from corruption of the master boot record, FAT, or directory.
Those are soft problems which can usually be taken care of
with a combination of tools like Fdisk /mbr to refresh the
master boot record followed by a reboot and Norton disk doctor
or Spinneret.

The most common hardware problems are a bad controller, a bad
drive motor, or a bad head mechanism.

1. Can the BIOS see and identify the hard drive correctly? If
it can't, then the hard drives onboard controller is bad.

2. Does the drive spin and maintain a constant velocity? If it
does, that's good news. The motor is functioning.

3. If the drive surges and dies, the most likely cause is a
bad controller (assuming the drive is cool). A gate allowing
the current to drive the motor may not be staying open. The
drive needs a new controller.

4. Do you hear a lot of head clatter when the machine is
turned on and initialized (but before the system attempts to
access the hard drive). Head clatter would indicate that the
spindle bearings are sloppy or worn badly. Maybe even lose and
flopping around inside.

5. There is always the possibility that the controller you are
using in the machine has gone south.

1. If the drive spins, try booting to the A> prompt, run Fdisk
and check to see if Fdisk can see a partition on the hard
drive. If Fdisk can see the partition, that means that it can
access the drive and that the controller electronics are
functioning correctly. If there is no head clatter, it may be
just a matter of disk corruption which commonly occurs when a
surge hits you machine and overwhelms the power supply voltage
regulator. It commonly over whelms the system electronics
allowing an EM pulse to wipe out the master boot record, file
allocations table, and primary directory. Fdisk can fix the
master boot record and Norton Disk Doctor can restore the FAT
and Directory from the secondaries.
2. The drive spins but Fdisk can't see it. Try the drive in
another system and repeat the test to confirm that Fdisk can't
read through the drives onboard controller. If it sees it in
another system, then your machines hard drive interface is
bad. You can try an upgraded or replacement controller card
like a Promise or CMD Technologies (there are others) in you
machine after disabling the integrated controller in the BIOS,
but if the integrated controller went south, it may just be
symptomatic of further failures and you'd be wise to replace
the motherboard. Trying the drive in another machine also
eliminates the variable that your machines 12 volt power
output being bad

3. If you get head clatter but a constant velocity on the
drive motor (no surging), you might try sticking the hard
drive in the freezer for about 12 hours. This is an old trick
from back in the days of the MFM/ESDI driver era. This can
cause the drive components to shrink enough to make the track
marker align with the tracks. We don't see that kind of
platter spindle wear much anymore, but back in the old days,
the balancing and bearings weren't as good. Still, under the
right circumstances, it might help. It would depend on how old
the drive is and how many hours of wear have occurred. You
have to be quick to get your info off the drive when it works.
Back then, the drives were much smaller, so there wasn't so
much to copy. So, go after the important data first.

4. The drive doesn't spin. Either the onboard controller is
bad or the motor is bad (assuming you did try the drive in
another machine). It's time to hit the net and local
independent shops to see if you can locate another drive of
the same make and model that's good. Since the drive is
probably an older drive and no longer in distribution, your
best bet is to find an identical used drive. If you know
someone with the same make and model, you might be wise to try
and persuade them to sell you their drive with an offer of
providing them with a free upgraded drive. If you can locate
an identical drive, start with the controller replacement ...
this is the simplest and least invasive. If swapping the
controller doesn't produce the desire result, you can tear
into the drive and swap the motors. While you have both drive
opened up to accomplish this, scrutinize the platters, heads
and armatures. You might even hook the drive up and power it
from a system with both drives attached. This way, you could
see anything that deviates between the actions of both drives
when they are initialized. Swapping patters is unlikely to
produce any positive result. They are a balanced system like
the tires on your car and I suspect that the balance will be
different for each drive as will other variables.

5. There's always Ontrack Corp. who will attempt to recoup
your info starting at $500 and going up from there. They don't
fix and return the drive either.

If the info is all that important to you, I would seek some
professional and experience technician in your locality who
makes his living from servicing and building computer systems
... not just selling them. If you have had much experience
salvaging information from bad hard drives, your likelihood of
success is low. In the case of soft corruption, all utilities
have their eccentricities. Often times, Norton Disk Doctor
will go too far (if you let it). It's wise to just let those
utilities small steps and then have a look at the drive and
see if you can copy it off. Norton will go so far as to rename
directories and files, and even delete them or break them up
into fragments which are useless.
_________________