Showing posts with label COMMAND PROMPT. Show all posts
Showing posts with label COMMAND PROMPT. Show all posts

Lan chat..no software required!!

Posted by Shashank Krishna Friday, January 30, 2009

For chating in any lan you dont need any software .Just copy the code in the note pad .

@echo off
:A
Cls
echo MESSENGER
set /p n=User:
set /p m=Message:
net send %n% %m%
Pause
Goto A


Now save this as "Messenger.bat". Open the .bat file and in Command Prompt you should see:

MESSENGER
User:

After "User" type the IP address of the computer you want to contact.
After this, you should see this:
Message:
Now type in the message you wish to send.
Before you press "Enter" it should look like this:

MESSENGER
User: 56.108.104.107
Message: Hi

Now all you need to do is press "Enter", and start chatting!
Before you leave, please promote this article with your favorite bookmarking site using the Share/save button! AND DO please give your valuable comment
Share/Save/Bookmark
Subscribe

Reblog this post [with Zemanta]

Open the Command Prompt from the Right-Click Menu

Posted by Shashank Krishna Thursday, January 15, 2009

I began computing in the days of DOS, and I still can't give up the command prompt. When it comes to doing down-and-dirty tasks like mass deleting or renaming of files, nothing beats it. I find myself frequently switching back and forth between Windows Explorer and the command prompt.Often, when using Windows Explorer, I want to open the command prompt at the folder that's my current location.
That takes too many steps: opening a command prompt and then navigating to my current folder.
However, there's a quicker way: you can add an option to the right-click context menu that will open a command prompt at your current folder.
For example, if you were to right-click the
C:\My Stuff folder,
you could then choose to open a command prompt at
C:\My Stuff.To add the option, run the Registry Editor, then go to
HKEY_LOCAL_MACHINE/Software/Classes/Folder/Shell.
Create a new key called Command Prompt. For the default value, enter whatever text you want to appear when you right-click a folderfor example, Open Command Prompt.
Create a new key beneath the Command Prompt key called Command.
Set the default value to Cmd.exe /k pushd %L.
That value will launch Cmd.exe, which is the XP command prompt.
The /k switch puts the prompt into interactive mode.
That is, it lets you issue commands from the command prompt; the command prompt isn't being used to issue only a single command and then exit. The pushd command stores the name of the current directory, and %L uses that name to start the command prompt at it.
Exit the Registry.
The new menu option will show up immediately.

Note that it won't appear when you right-click a file; it shows up only when you right-click a folder.While many of us like fussing around with the Registry rather than doing things the easy way, there's also a way to add this option to your right-click context menu without editing the Registry.
Download and install a free copy of Microsoft's Open Command Window Here PowerToy from http://www.microsoft.com/windowsxp/pro/downloads/powertoys.asp.
Share/Save/Bookmark
Subscribe

Changing the root drive for CMD....

Posted by Shashank Krishna

You might be aware of DOS prompt....its nothing but the cmd command.....
Just click the START button,n then click on the run button.....then in the box type cmd or cmd.exe.
U can observe dat the command prompt by default starts as...
C:\Document and Settings\>
so if u need to change the root directory to another drive of ur system..like
D:\> or
E:\>.....etc.
All u need is to copy the cmd.exe or cmd file which is located at
C:\WINDOWS\system32
and paste it in the drive u need.....
then when u run it from the desired hard drive..
u can see the root directory to be the letter of that drive...

or
just press the drive letter followed by the symbol colon ":"
like D:
E:
etc....
Share/Save/Bookmark
Subscribe

Command Line List and Reference

Posted by Shashank Krishna Monday, January 5, 2009


The complete list of possible commands is quite large. Collected here is a selection of those that I believe are likely to be the most applicable to home PC use.

Many of the commands listed below are also discussed in more detail elsewhere on this site as is indicated by the link "details here". Most commands have switches that are not given in the table. For more information, open a command prompt and enter "commandname /?" (without quotes). Detailed information about these commands and a larger list is available at this Microsoft reference.

Selected list of commands
Command Description Example
assoc Displays or modifies file name extension associations. Used alone, displays a list of all the current file name associations details here
at Schedules commands and programs to run on a computer at a specified time and date. Requires the Schedule service. Superseded by schtasks
attrib Configures file attributes read only, hidden, system details here
bootcfg Used to repair or edit the boot.ini file details here
cd or chdir Displays the name of the current directory or changes the current folder cd folderpath
chkdsk Checks hard drives for errors. With switches,does repairs. details here
cls Clears the screen cls
copy Copies a file from one location to another copy somefile somefolder
del Deletes one or more files details here
dir Displays a list of a folder's files and subfolders details here
echo Used to display a message or to turn off/on messages in batch scripts echo message
exit Exits batch script or current command control exit
fc Compares two files and displays the differences between them fc file1 file2
for Runs a specified command for each item in a set details here
fsutil Displays and configures certain file system properties. A suite of various commands details here
ftype Displays or modifies file types used in file name extension associations details here
getmac Returns the media access control (MAC) address for your network card getmac
goto Directs the Windows command interpreter to a labeled line in a batch program details here
if Performs conditional processing in batch programs details here
ipconfig Displays all current TCP/IP network configuration values and refreshes Dynamic Host Configuration Protocol (DHCP) and Domain Name System (DNS) settings details here
md or mkdir Creates a directory (folder) or subdirectory (subfolder) details here
more Displays one screen of output at a time. Used with another command that has extensive output command |more
move Moves a file from one folder to another details here
net A suite of various networking and service commands details here
netsh Network services shell . Complex suite of commands. details here
netstat Displays active TCP connections, ports on which the computer is listening, Ethernet statistics, the IP routing table, statistics for the IP, ICMP, TCP, and UDP protocols details here
path Sets the command path in the PATH environment variable, which is the set of directories used to search for executable files details here
pathping Provides information about network performance and conditions at intermediate hops between a source and destination details here
pause Used in batch scripts pause
ping Checks connectivity to other networked computers, routers, or Internet sites details here
popd, pushd Changes the directory being referenced in a command prompt. Pushd changes the directory and stores the previous directory. Popd changes the current directory to the directory stored by the pushd command pushd somefolder
popd
powercfg Manages the power settings such as hibernation. Has numerous switches
reg Adds, changes, and displays registry entries. A suite of various commands details here
rd or rmdir Deletes a directory (folder) details here
ren or rename Changes the name of a file or a set of files details here
sc Used to obtain information about services and to configure them. A suite of various commands details here
schtasks Schedules commands and programs to run periodically or at a specific time
set Displays, sets, or removes environment variables details here and also here
sfc System file checker scans and verifies the versions of all protected system files sfc /scannow
shutdown Shuts down or restarts a computer details here
start Starts an application or opens a new command window details here
subst Associates a folder with a drive letter details here
systeminfo Displays detailed configuration information about a computer and its operating system systeminfo | more
taskkill Ends one or more tasks or processes details here
tasklist Displays a list of applications and services with their Process ID (PID) for all tasks running details here
tree Graphically displays the directory structure of a folder or drive tree somefolder
typeDisplays the contents of a text file type somefile.txt
xcopy Powerful command with many switches for copying and backing up files and folders details here


Share/Save/Bookmark
Subscribe

Are You Planning on Quitting Facebook? Why?

@Flickr

www.flickr.com

About Me

My Photo
Shashank Krishna
Bangalore, up, India
nothin much to say.........doin B.tech in IIIT allahabad loves bloggingn hacking.... :) and loooves blogging
View my complete profile

ads2

topads