Answered by:
Rare Dos commands?

Question
-
all you have to do is to write about rare dos commands which generally are not familiar with.Wednesday, May 23, 2007 7:42 PM
Answers
-
tasklist as mentioned above
taskkill
ipconfig
netstat
nbtstat
ping (is popular)
systeminfo
fdisk
chkdisk
debug
few above are for msdos for windows, while some exists since dos was first developed.Thursday, May 24, 2007 7:58 AM -
let me start with A
attrib
arp
append
assignThursday, May 24, 2007 1:23 PM -
HMA
First 64KB of memory Beyond 1MBHigh memory area (HMA) - first 64 KB of XMS also requires HIMEM.SYS as an external memory manager (loaded in config.sys) Only 1 program at a time can access HMA Commonly used for loading DOS "high", but also used for TSRs. Friday, May 25, 2007 9:30 AM -
Will make all directories hidden however still accessible, to get them back SET DIRCMD=
Friday, May 25, 2007 3:02 PM -
Preetam_Ghosh_d910d0 wrote: msconfig is not a dos command
it is a good run command for stopping the startups but a better and safer way to do that is through services.msc
and then changing its startup type by right clicking and changing its properties
1) i would like to correct you that it is a DOS command.
you can execute it through command shell.
2) it is more safer , easier way to configure the services at onceSaturday, May 26, 2007 1:12 AM -
@Varu - Ill save you from surfing the net
I know it all, Networkign GURU
!!!
net <-- this is a command
i guess you guys try out this comand, it got lot of thinsg, you can know your computer name, the shares etc etc
if you pass first command line arguement as send
so with the help of that command you can send messages to another computer conencted in the lan.
Syntax :
NET SEND
{name | * | /DOMAIN[:name] | /USERS} message
I think most of you wont understand thatill explain int.
eg : net send IP "your message here"
this will send the specified message to the IP address.
eg: net send PC_HOST_NAME "your message here"
This will send message to the specified PC_host_name
eg : net send * "your messsage here"
this will send the message to all the hosts connected in the lan with the same subnet (DOMAIN)
eg: net send /DOMAINC_HOST_NAME "your message here"
this will send message to the specified host in the specified name
To use this net send features, you will have to enable the MESSENGER service.
The messenger service is by default enabled in winxp, while its disabled by default in winxp sp2. Correct me if i am wrong.
To enable the messenger service START > RUN > SERVICES.MSC
in there find for MESSENGER right click it > properties, and set the STARTUP TYPE to AUTOMATIC.
or alternatively you can start it manually by start > run > cmd > net start messenger
and stop it by net stop messenger
Extra :
net share <-- shows a list of all the shared folders / drives
net localgroup <-- to know all the groups of users
net user <-- list of users
net use <--- you can map a network drive using this commandSaturday, May 26, 2007 7:33 AM -
RESTORE /Y - Unknown
RESTORE /Z - Unknown
Saturday, May 26, 2007 10:29 AM -
WMIC Displays WMI information inside interactive command shell.
SYSTEMINFO Displays machine specific properties and configuration.Sunday, May 27, 2007 6:40 PM -
yes sunil you are right
Calls one batch program from another without stopping the parent batch program. The call command accepts labels as the target of the call. Call has no effect at the command-line when used outside of a script or batch file.
...
a side note:- i think all the members should take some effort in marking the correct answers and useful answers...i see so many members including myself, not being marked for good quality answers...spread the messsage guys
Monday, May 28, 2007 3:14 PM -
Yup, Choice cmd is the best for creating batch files.. but XP doesnot have the external file for using choice cmd.. even we didnt had it in out lab, which is the scenario almost everywhere and thus we were not asked the batch files in exams....
But anyhow, i was able to find the external file of the choice cmd and its there lying somewhere...
Anyhow i will 1st show you an example of the choice cmd...
Code Snippet@ echo off
:start
Echo "Press 1 to execute batch1.bat"
Echo "Press 3 to execute batch3.bat"
Echo "Press 4 to execute batch4.bat"
Echo "Press 7 to Execute Batch7.bat"
Echo "Press q to Quit"
choice /c:1347q /T:q,15 "Select Choice"
If errorlevel==5 goto quit
If errorlevel==4 goto bat7
If errorlevel==3 goto bat4
If errorlevel==2 goto bat3
If errorlevel==1 goto bat1
:bat1
call batch1
goto start
:bat3
call batch3
goto start
:bat4
call batch4
goto start
:bat7
Echo Seventh Batch File
del count.txt
call batch7
goto start
:quit
Echo Sorry, you could not chain to any batchfile
Try to study it and ask questions, it will become more interactive then...Wednesday, May 30, 2007 6:09 PM
All replies
-
I am starting with this
tasklist
this will is the taskmanager for dos promptWednesday, May 23, 2007 7:44 PM -
DIR , - This lists all files including hidden files, does not work in Windows 95 / 98 / NT / 2000.Thursday, May 24, 2007 12:06 AM
-
tasklist as mentioned above
taskkill
ipconfig
netstat
nbtstat
ping (is popular)
systeminfo
fdisk
chkdisk
debug
few above are for msdos for windows, while some exists since dos was first developed.Thursday, May 24, 2007 7:58 AM -
i remember awhitepaper, being uploaded and titled, a complete list of dos commands...so search for it....Thursday, May 24, 2007 1:20 PM
-
let me start with A
attrib
arp
append
assignThursday, May 24, 2007 1:23 PM -
-
HMA
First 64KB of memory Beyond 1MBHigh memory area (HMA) - first 64 KB of XMS also requires HIMEM.SYS as an external memory manager (loaded in config.sys) Only 1 program at a time can access HMA Commonly used for loading DOS "high", but also used for TSRs. Friday, May 25, 2007 9:30 AM -
memFriday, May 25, 2007 11:40 AM
-
backupFriday, May 25, 2007 1:21 PM
-
remFriday, May 25, 2007 2:09 PM
-
Will make all directories hidden however still accessible, to get them back SET DIRCMD=
Friday, May 25, 2007 3:02 PM -
msconfig-- to configure the services to be started during bootingFriday, May 25, 2007 4:33 PM
-
msconfig is not a dos command
it is a good run command for stopping the startups but a better and safer way to do that is through services.msc
and then changing its startup type by right clicking and changing its propertiesFriday, May 25, 2007 7:23 PM -
Preetam_Ghosh_d910d0 wrote: msconfig is not a dos command
it is a good run command for stopping the startups but a better and safer way to do that is through services.msc
and then changing its startup type by right clicking and changing its properties
1) i would like to correct you that it is a DOS command.
you can execute it through command shell.
2) it is more safer , easier way to configure the services at onceSaturday, May 26, 2007 1:12 AM -
Hey guys anyone tried netsend cmd??
its a cmd used to send messages to another computer in LAN,
now most of you wont be knowing about it as it doesnot work by default in XP, because there is activity that needs to be activated to run it on XP system...
reply to know more about it.. because i will need to search for it again, as it has been a time since i used it..Saturday, May 26, 2007 6:41 AM -
@Varu - Ill save you from surfing the net
I know it all, Networkign GURU
!!!
net <-- this is a command
i guess you guys try out this comand, it got lot of thinsg, you can know your computer name, the shares etc etc
if you pass first command line arguement as send
so with the help of that command you can send messages to another computer conencted in the lan.
Syntax :
NET SEND
{name | * | /DOMAIN[:name] | /USERS} message
I think most of you wont understand thatill explain int.
eg : net send IP "your message here"
this will send the specified message to the IP address.
eg: net send PC_HOST_NAME "your message here"
This will send message to the specified PC_host_name
eg : net send * "your messsage here"
this will send the message to all the hosts connected in the lan with the same subnet (DOMAIN)
eg: net send /DOMAINC_HOST_NAME "your message here"
this will send message to the specified host in the specified name
To use this net send features, you will have to enable the MESSENGER service.
The messenger service is by default enabled in winxp, while its disabled by default in winxp sp2. Correct me if i am wrong.
To enable the messenger service START > RUN > SERVICES.MSC
in there find for MESSENGER right click it > properties, and set the STARTUP TYPE to AUTOMATIC.
or alternatively you can start it manually by start > run > cmd > net start messenger
and stop it by net stop messenger
Extra :
net share <-- shows a list of all the shared folders / drives
net localgroup <-- to know all the groups of users
net user <-- list of users
net use <--- you can map a network drive using this commandSaturday, May 26, 2007 7:33 AM -
Thankz a lot buddy, I think that its by default deactivated in xp, any sp...
Also i just checked, in services their is option of automated or manul, if manul then we have the option of using the cmd net start messenger....
Also wanted to ask., can i send a message to u using net send???Saturday, May 26, 2007 9:45 AM -
RESTORE /Y - Unknown
RESTORE /Z - Unknown
Saturday, May 26, 2007 10:29 AM -
I dont think net send will work across the internet. But yes, if you still want, then you can create a VPN with the two pc's on the internet, and then you can use net send to send message to the other pcSaturday, May 26, 2007 5:33 PM
-
Harshil can you explain more of VPN, if ready lets try it out...Saturday, May 26, 2007 5:59 PM
-
@Varun, we will try VPN next month. I am in short of bw for this month.
my 2.5gb is going to complete soon
Next month,fresh quota, we can give it a trySaturday, May 26, 2007 7:01 PM -
Ok so we will try it next month...Sunday, May 27, 2007 6:26 AM
-
iexplore
this is used to open the internet explorer.
mozilla
to open mozilla browser if you firefox installed on your systemSunday, May 27, 2007 12:03 PM -
Hey Sunil, I can tell you the reason how this iexlpore or mozila works, after that you will get a lot more list of the similar cmds... do you wana know about it or do you know it???Sunday, May 27, 2007 1:25 PM
-
sunil both iexplore and msconfig are not dos commands....
a new dos command is
breakSunday, May 27, 2007 1:25 PM -
WMIC Displays WMI information inside interactive command shell.
SYSTEMINFO Displays machine specific properties and configuration.Sunday, May 27, 2007 6:40 PM -
Nice ones, they work on XP sp2 also, systeminfo was good.. i didnt knew wat to do with the other one...Sunday, May 27, 2007 7:37 PM
-
oh sure.
buddy.
i would like to hear from you.
go on.
but i'm also not wrong naa buddyMonday, May 28, 2007 6:21 AM -
You are not wrong,
Let me 1st clear out the basics.. there are two types of cmds, internal and external... Internal cmds are defined in the command.com, where as external cmds are small utility programs that are called using their name in dos...
So even if i write iexplorer, it can be called a cmd, because it is a utility prog that i m calling...
now how does it works??
We have a path in Dos, ie we define some areas of the harddisk where Dos can search for the executable files that we call, by default windows, system32 etc are in path....
Now when we write a name of the exe file, 1st it is searched in the command.com then in the search path that is defined.. when it is found it gets executed or else dos will say no such cmd found....
So iexplorer and mozila are all coming under this path, so when you write their name, they get executed... similar way you can find lot more to execute, like the best one i use is MSDEV to execute the VC++ program...
now find lot more like this...Monday, May 28, 2007 8:51 AM -
thanks varun for pointing a difference between internal and external dos commands...
so sunil you were correct
well this is a new dos command
"call"
Monday, May 28, 2007 2:52 PM -
nice information buddy.
but i would like to add something.
there are still some commands which won't get executed if you will type on a RUN window.
however, if you'll write the same command in the command prompt then you'll not have any problem.
can you explain why?
there are many bugs in windows.Monday, May 28, 2007 3:03 PM -
nice information buddy.
but i would like to add something.
there are still some commands which won't get executed if you will type on a RUN window.
however, if you'll write the same command in the command prompt then you'll not have any problem.
can you explain why?
there are many bugs in windows.
& my answers are not getting markes as ANSWERs.
why bhai logo?Monday, May 28, 2007 3:03 PM -
i think this command is handy in either BATCH programs or SCRIPTING.
correct me if i'm wrong.
& do mark my answers yaar.Monday, May 28, 2007 3:05 PM -
yes sunil you are right
Calls one batch program from another without stopping the parent batch program. The call command accepts labels as the target of the call. Call has no effect at the command-line when used outside of a script or batch file.
...
a side note:- i think all the members should take some effort in marking the correct answers and useful answers...i see so many members including myself, not being marked for good quality answers...spread the messsage guys
Monday, May 28, 2007 3:14 PM -
Hey i just remmbered a very nice question..
tell me the difference between using a call cmd to call another batch and wrting the name of the batch alone, i.e. directly calling the batch file without call cmd....
And buddies, though the marking of the posts was a very good facility provided by forums, people have started using it for their own benefits only.. so its worthless asking people to mark the posts.. I mark each and every posts in my forums, so that even if you reply, i mark it so that it would become fair to all....Monday, May 28, 2007 4:04 PM -
ASSOC Displays or modifies file extension associations.
AT Schedules commands and programs to run on a computer.
ATTRIB Displays or changes file attributes.
BREAK Sets or clears extended CTRL+C checking.
CACLS Displays or modifies access control lists (ACLs) of files.
CALL Calls one batch program from another.
CD Displays the name of or changes the current directory.
CHCP Displays or sets the active code page number.
CHDIR Displays the name of or changes the current directory.
CHKDSK Checks a disk and displays a status report.
CHKNTFS Displays or modifies the checking of disk at boot time.
CLS Clears the screen.
CMD Starts a new instance of the Windows command interpreter.
COLOR Sets the default console foreground and background colors.
COMP Compares the contents of two files or sets of files.
COMPACT Displays or alters the compression of files on NTFS partitions.
CONVERT Converts FAT volumes to NTFS. You cannot convert the
current drive.
COPY Copies one or more files to another location.
DATE Displays or sets the date.
DEL Deletes one or more files.
DIR Displays a list of files and subdirectories in a directory.
DISKCOMP Compares the contents of two floppy disks.
DISKCOPY Copies the contents of one floppy disk to another.
DOSKEY Edits command lines, recalls Windows commands, and creates macros.
ECHO Displays messages, or turns command echoing on or off.
ENDLOCAL Ends localization of environment changes in a batch file.
ERASE Deletes one or more files.
EXIT Quits the CMD.EXE program (command interpreter).
FC Compares two files or sets of files, and displays the differences
between them.
FIND Searches for a text string in a file or files.
FINDSTR Searches for strings in files.
FOR Runs a specified command for each file in a set of files.
FORMAT Formats a disk for use with Windows.
FTYPE Displays or modifies file types used in file extension associations.
GOTO Directs the Windows command interpreter to a labeled line in a
batch program.
GRAFTABL Enables Windows to display an extended character set in graphics
mode.
HELP Provides Help information for Windows commands.
IF Performs conditional processing in batch programs.
LABEL Creates, changes, or deletes the volume label of a disk.
MD Creates a directory.
MKDIR Creates a directory.
MODE Configures a system device.
MORE Displays output one screen at a time.
MOVE Moves one or more files from one directory to another directory.
PATH Displays or sets a search path for executable files.
PAUSE Suspends processing of a batch file and displays a message.
POPD Restores the previous value of the current directory saved by PUSHD.
PRINT Prints a text file.
PROMPT Changes the Windows command prompt.
PUSHD Saves the current directory then changes it.
RD Removes a directory.
RECOVER Recovers readable information from a bad or defective disk.
REM Records comments (remarks) in batch files or CONFIG.SYS.
REN Renames a file or files.
RENAME Renames a file or files.
REPLACE Replaces files.
RMDIR Removes a directory.
SET Displays, sets, or removes Windows environment variables.
SETLOCAL Begins localization of environment changes in a batch file.
SHIFT Shifts the position of replaceable parameters in batch files.
SORT Sorts input.
START Starts a separate window to run a specified program or command.
SUBST Associates a path with a drive letter.
TIME Displays or sets the system time.
TITLE Sets the window title for a CMD.EXE session.
TREE Graphically displays the directory structure of a drive or path.
TYPE Displays the contents of a text file.
VER Displays the Windows version.
VERIFY Tells Windows whether to verify that your files are written
correctly to a disk.
VOL Displays a disk volume label and serial number.
XCOPY Copies files and directory trees.Tuesday, May 29, 2007 4:53 PM -
You can find a list of rarely used and secret commands at the site http://www.computerhope.com/secret.htm
Tuesday, May 29, 2007 5:09 PM -
varun nice thought there and even i agree with you that many people are misusing the forum facility, in a very wrong way...
harshil...nice list man...
raghuram..thanks for the link..
hers my new dos command
"comp"
here are some list of commands which are quite common
CHDIR
COMMAND
Wednesday, May 30, 2007 5:54 PM -
That CHOICE command seems really nice. Its used in batch file. I dont know how to use it. If anyone does then please let me know. i think it might be similar to choose in oracle or switch in C/C++. not sure.Wednesday, May 30, 2007 6:00 PM
-
Yup, Choice cmd is the best for creating batch files.. but XP doesnot have the external file for using choice cmd.. even we didnt had it in out lab, which is the scenario almost everywhere and thus we were not asked the batch files in exams....
But anyhow, i was able to find the external file of the choice cmd and its there lying somewhere...
Anyhow i will 1st show you an example of the choice cmd...
Code Snippet@ echo off
:start
Echo "Press 1 to execute batch1.bat"
Echo "Press 3 to execute batch3.bat"
Echo "Press 4 to execute batch4.bat"
Echo "Press 7 to Execute Batch7.bat"
Echo "Press q to Quit"
choice /c:1347q /T:q,15 "Select Choice"
If errorlevel==5 goto quit
If errorlevel==4 goto bat7
If errorlevel==3 goto bat4
If errorlevel==2 goto bat3
If errorlevel==1 goto bat1
:bat1
call batch1
goto start
:bat3
call batch3
goto start
:bat4
call batch4
goto start
:bat7
Echo Seventh Batch File
del count.txt
call batch7
goto start
:quit
Echo Sorry, you could not chain to any batchfile
Try to study it and ask questions, it will become more interactive then...Wednesday, May 30, 2007 6:09 PM -
choice /c:1347q /T:q,15 "Select Choice"
what does that q,15 mean man ? I have understood the rest of the code. I have done a lot of batch scripting on that errorlevel and how it works, so it wasn't hard for me to understand that part.Wednesday, May 30, 2007 6:15 PM -
hey nice snippet for the choice command...cool...m studying it and also trying ti out..would den ask questionsWednesday, May 30, 2007 6:33 PM
-
Looks like we need to discuss more on batch files. .so i have started a new thread specifically for the batch files.. we can disscuss all the details of the batch files, give out codes for the batch files, i have some where around 12 good batch files, and solve queries....
You know where to find the link
So come and discuss more on the batch files over there...Wednesday, May 30, 2007 6:41 PM -
issuing osk in the run shell opens the onscreen keyboard.Thursday, May 31, 2007 3:10 AM
-
that OSK was a good one; )Thursday, May 31, 2007 8:35 AM