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

CHAT WITH COMMAND PROMPT


If you want personal chat with a friend
you don't need to download any yahoo messenger
All you need is your friends IP address and Command Prompt.
Firstly, open Notepad and enter:
@echo o
: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:27.196.391.193
Message: Hi
Now all you need to do is press "Enter", and start chatting

DOS command-START

Starts a separate window to run a specified program or command.

START ["title"] [/Dpath] [/I] [/MIN] [/MAX] [/SEPARATE /SHARED][/LOW /NORMAL /HIGH /REALTIME /ABOVENORMAL /BELOWNORMAL][/WAIT] [/B] [command/program][parameters]

"title" Title to display in window title bar path Starting directory

/B Start application without creating a new window. The application has ^C handling ignored. Unless the application enables ^C processing, ^Break is the only way to interrupt the application

/I The new environment will be the original environment passed to the cmd.exe and not the current environment
/MIN Start window minimized
/MAX Start window maximized
/SEPARATE Start 16-bit Windows program in separate memory space
/SHARED Start 16-bit Windows program in shared memory space
/LOW Start application in the IDLE priority class
/NORMAL Start application in the NORMAL priority class
/HIGH Start application in the HIGH priority class
/REALTIME Start application in the REALTIME priority class
/ABOVENORMAL Start application in the ABOVENORMAL priority class
/BELOWNORMAL Start application in the BELOWNORMAL priority class
/WAIT Start application and wait for it to terminate command
/program If it is an internal cmd command or a batch file then the command processor is run with the /K switch to cmd.exe. This means that the window will remain after the command has been run.
If it is not an internal cmd command or batch file then it is a program and will run as either a windowed application or a console application. parameters These are the parameters passed to the command/program

If Command Extensions are enabled, external command invocationthrough the command line or the START command changes as follows:
non-executable files may be invoked through their file association just by typing the name of the file as a command. (e.g. WORD.DOC would launch the application associated with the .DOC file extension).

See the ASSOC and FTYPE commands for how to create theseassociations from within a command script.
When executing an application that is a 32-bit GUI application, CMD.EXE does not wait for the application to terminate before returning tothe command prompt. This new behavior does NOT occur if executing within a command script.

When executing a command line whose first token is the string "CMD " without an extension or path qualifier, then "CMD" is replaced with the value of the COMSPEC variable. This prevents picking up CMD.EXE from the current directory.

When executing a command line whose first token does NOT contain an extension, then CMD.EXE uses the value of the PATHEXT environment variable to determine which extensions to look for and in what order. The default value for the PATHEXT variable is:
.COM;.EXE;.BAT;.CMD
Notice the syntax is the same as the PATH variable, with semicolons separating the different elements.
When searching for an executable, if there is no match on any extension, then looks to see if the name matches a directory name. If it does, the START command launches the Explorer on that path. If done from the command line, it is the equivalent to doing a CD /D to that path.

Examples
start notepad myfile.txt
Start a new instance of notepad with the file myfile.txt open in it.

start /MAX notepad
Start the notepad window with the screen maximized.

start /MIN mybatch.bat
The above example would start the batch file mybatch.bat in a minimized window.

Some Important Run commands ...

You may be knowing that to run a perticular windows executable program ( .exe, .pif, .com files) directly you need to open it from Start>Run and typing in the name of it.

Here are some of the useful shortcut commands.
(Tip - You can directly open 'Run' by pressing Windows+R keys at a time.)
command - to run MS - DOS (.com, .pif)
calc - to run calculator (.exe)
control - to open Control Panel (.exe)
defrag - to defrag the hard disk drives (.exe)
dialer - for dialing seups (.exe)
dosprompt - to get a minimized DOS window (.pif)
explorer - to open Windows Explorer (.exe., .scf)
ftp - for File Transfer Protocol if internet is connected (.exe)
ms-dos~1/ms-dos~2 - for fully MS-DOS mode.
No Windows O.S. (.pif)net - for net information cum help (.exe)
ping - for bytes information and bandwidth of internet connection information (.exe)
regedit - to open Registry (.exe)

telnet - command runner if the system is conncected in a UNIX system network (.exe)
tuneup - for Task Scheduling wizard, i.e. Task Maintanance (.exe)
notepad - to run Notepad (.exe)
write - to run Wordpad (.exe)
scanregw - to scan the Registry and to backup it (.exe)
progman - to maintain, run and view the files in all drives (.exe)
directcc - to join your computer in cable conncetion with other computers (.exe)
scandskw - to open Scandisk to scan the hard drives (.exe)
winfile - Windows File Managertaskman - to manage current running open programs or files.Nice replacement for default Windows taskbar

msconfig - to maintain the configuration of computer. It will show the options like General, Startup including files Autoexec.bat, Config.sys, System.ini and Win.ini. (Autoexec.bat & Config.sys are MS-DOS files)

winrep - to run Windows Report Tool - Accessories>System Tools>System Information (.exe)winver - to know the version of Windowspackager - insert objects in documets, presentations or worksheets
winfile - another Windows Explorer (.exe)
clipbook - a simple utility that allws you to save and recall several pages or graphics. (.exe)sysedit - view or edit system files from within one window (.exe)

->Changing the root drive for CMD....

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....