Showing posts with label DOS. Show all posts
Showing posts with label DOS. Show all posts

Tuesday, June 12, 2012

Chat With Your Friends Through MS DOS (Command Prompt)

Do you want to chat or just send a private message to your friend, family member or office mates without using any fancy program? Back in my college days me and my friends uses this trick to talk inside the Computer Lab because we were not allowed to download or use any messenger services during the practical sessions. A lot of this kind of tutorial are not working because they are missing something. I will show you on how you can make it work.

1. First thing first, you must know your friends IP address and your Command Prompt.

2. Open your notepad and write this code as it is. I would advice you to copy this and paste on notepad.



3. Now save this as Messenger.bat.

Don’t run it yet… because it will not work. follow these procedures to make it work.

Go to Control Panel then click on Administrative Tools, On the Administrative Tools window click Services.


Scroll down and look for messenger. It will open the Messenger Properties.

Set the Startup Type to “Automatic” then press “Start” then OK. No need to restart your computer.

Do this also on the remote PC and your done… you can now chat without using any software. Just run the program and enter your friend’s IP to “Friend” press Enter, then enter your message press enter again… then have fun

4. Now Drag the above file (ie the .bat file) over to Command Prompt and press Enter.

5. Now You would notice some thing like this:


6. After “User” type the IP address of the computer you want to contact and have a chat with.


7. Before you press “Enter” it should look like this:


8. Now all you need to do is press “Enter”, and start chatting Now all you need to do is press Enter, and start chatting.

NirCmd : A Freeware Windows Command-line Tool

Introduction:
NirCmd is a small command-line utility that allows you to do some useful tasks without displaying any user interface. By running NirCmd with simple command-line option, you can write and delete values and keys in the Registry, write values into INI file, dial to your internet account or connect to a VPN network, restart windows or shut down the computer, create shortcut to a file, change the created/modified date of a file, change your display settings, turn off your monitor, open the door of your CD-ROM drive, and more.

System Requirements
This utility can work in all 32-bit Windows operating systems: Windows 9x/ME, Windows NT, Windows 2000, Windows XP, Windows Server 2003, and Windows Vista. However, some of NirCmd commands works only on Windows NT/2000/XP/2003/Vista.

License
This utility is released as freeware. You are allowed to freely distribute this utility via floppy disk, CD-ROM, Internet, or in any other way, as long as you don't charge anything for this. If you distribute this utility, you must include all files in the distribution package, without any modification !

How To Install?
The installation of NirCMD is pretty simple. Just download the zip file from the location given below and extract to a folder. Run NirCMD.exe and select Copy to Windows Directory. By selecting this option, you don’t have to give full path of nirCMD in the command line.

How To Use?
Let’s take a look at the usage of this small utility. Once it’s copied to Windows directory, go to cmd and issue the following command:

C:>nircmd cdrom open d:
where d: is the CD-ROM drive letter.This will open the CD-ROM tray.

Examples of what you can do with NirCmd:

Close the door of F: CD-ROM drive
nircmd.exe cdrom close f:

Remove the title bar of My Computer window.
nircmd.exe win -style title "my computer" 0x00C00000

Hide the clock on the system tray
nircmd.exe win child class "Shell_TrayWnd" hide class "TrayClockWClass"

Empty the recycle bin in all drives.
nircmd.exe emptybin

Hide the desktop window
nircmd.exe win hide class progman

Set the volume to the highest value
nircmd.exe setsysvolume 65535

For more examples see HERE

Download NirCmd

Sunday, May 13, 2012

How To Enable Copy Paste in Command Prompt ??

Have you noticed in Windows command prompt that you can’t paste anything into the window using the keyboard easily but requires mouse to do so. Here’s how to fix that problem.

What you’ll have to do is use the Alt+Space keyboard combination to bring up the window menu, then hit the E key, and then the P key. This will trigger the menus and paste into the console.

The next solution for this irritating problem is to use a quick AutoHotkey script to enable pasting from the keyboard.

Follow these Steps:

1. Download and Install the AutoHotKey from HERE.

2. Create a new AutoHotkey script or add the following to your existing script


3. This script uses the data copied in the clipboard to send it to the command prompt.

Note: The script doesn’t paste line breaks very well.