A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » General XP issues or comments
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Windows XP and DOS commands



 
 
Thread Tools Display Modes
  #1  
Old October 18th 04, 02:17 PM
Lexus
external usenet poster
 
Posts: n/a
Default Windows XP and DOS commands

Getting new computer with WinXP. After living with Win95, 98, and ME (for
last 4 years), I am very familiar with both registry mods and DOS batch files.
From what I see, my registry knowledge is still usable, but understand DOS
is no longer underlying XP.
Are any DOS commands still usable to automate some tasks?

Thanks
Ads
  #2  
Old October 18th 04, 02:31 PM
Jim Macklin
external usenet poster
 
Posts: n/a
Default Windows XP and DOS commands

Yes, there is a command line interface and many former DOS
commands are still supported. Some are not and there are
some changes in switches.
To see a list of commands, open the command window by
Start/Run "cmd" to see a list of supported coomands type
"help" (without the quotes, in each case)
Type a command with a space followed by a slash and question
mark to see a list of the switches such as ...
*************************
C:\Documents and Settings\help
For more information on a specific command, type HELP
command-name
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.

C:\Documents and Settings\xcopy /?
Copies files and directory trees.

XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S
[/E]] [/V] [/W]
[/C] [/i] [/Q] [/F] [/L] [/G]
[/H] [/R] [/T] [/u]
[/K] [/N] [/O] [/X] [/Y] [/-Y]
[/Z]
[/EXCLUDE:file1[+file2][+file3]...]

source Specifies the file(s) to copy.
destination Specifies the location and/or name of new
files.
/A Copies only files with the archive attribute
set,
doesn't change the attribute.
/M Copies only files with the archive attribute
set,
turns off the archive attribute.
/D:m-d-y Copies files changed on or after the
specified date.
If no date is given, copies only those files
whose
source time is newer than the destination
time.
/EXCLUDE:file1[+file2][+file3]...
Specifies a list of files containing strings.
Each string
should be in a separate line in the files.
When any of the
strings match any part of the absolute path
of the file to be
copied, that file will be excluded from being
copied. For
example, specifying a string like \obj\ or
..obj will exclude
all files underneath the directory obj or all
files with the
.obj extension respectively.
/P Prompts you before creating each destination
file.
/S Copies directories and subdirectories except
empty ones.
/E Copies directories and subdirectories,
including empty ones.
Same as /S /E. May be used to modify /T.
/V Verifies each new file.
/W Prompts you to press a key before copying.
/C Continues copying even if errors occur.
/I If destination does not exist and copying
more than one file,
assumes that destination must be a directory.
/Q Does not display file names while copying.
/F Displays full source and destination file
names while copying.
/L Displays files that would be copied.
/G Allows the copying of encrypted files to
destination that does
not support encryption.
/H Copies hidden and system files also.
/R Overwrites read-only files.
/T Creates directory structure, but does not
copy files. Does not
include empty directories or subdirectories.
/T /E includes
empty directories and subdirectories.
/U Copies only files that already exist in
destination.
/K Copies attributes. Normal Xcopy will reset
read-only attributes.
/N Copies using the generated short names.
/O Copies file ownership and ACL information.
/X Copies file audit settings (implies /O).
/Y Suppresses prompting to confirm you want to
overwrite an
existing destination file.
/-Y Causes prompting to confirm you want to
overwrite an
existing destination file.
/Z Copies networked files in restartable mode.

The switch /Y may be preset in the COPYCMD environment
variable.
This may be overridden with /-Y on the command line.

C:\Documents and Settings\
*************
To copy from the command window, right click, select copy
and then paste into a normal window document or file.


--
The people think the Constitution protects their rights;
But government sees it as an obstacle to be overcome.


"Lexus" wrote in message
...
| Getting new computer with WinXP. After living with Win95,
98, and ME (for
| last 4 years), I am very familiar with both registry mods
and DOS batch files.
| From what I see, my registry knowledge is still usable,
but understand DOS
| is no longer underlying XP.
| Are any DOS commands still usable to automate some tasks?
|
| Thanks


  #3  
Old October 18th 04, 02:34 PM
Carey Frisch [MVP]
external usenet poster
 
Posts: n/a
Default Windows XP and DOS commands

Windows XP is not based on the old MS-DOS platform. However,
you can use the Command Prompt which emulates MS-DOS.

If you are running Windows XP Professional:

1. Open XP's "Help and Support" program.
2. In the Search box type: COMMAND-LINE , and hit enter.
3. Then click on "Command-line reference A-Z".

If you are running Windows XP Home Edtion:

Command-line reference A-Z
http://www.microsoft.com/resources/d...us/ntcmds.mspx

--
Carey Frisch
Microsoft MVP
Windows XP - Shell/User

Be Smart! Protect Your PC!
http://www.microsoft.com/athome/secu...t/default.aspx

-------------------------------------------------------------------------------------------

"Lexus" wrote:

| Getting new computer with WinXP. After living with Win95, 98, and ME (for
| last 4 years), I am very familiar with both registry mods and DOS batch files.
| From what I see, my registry knowledge is still usable, but understand DOS
| is no longer underlying XP.
| Are any DOS commands still usable to automate some tasks?
|
| Thanks
  #4  
Old October 18th 04, 02:43 PM
mayo
external usenet poster
 
Posts: n/a
Default Windows XP and DOS commands

Nice post Jim -
I'm replying to your post in an attempt to "forward" a copy to my e-mail.
We used to be able to do that easily with the previous format for this forum,
but now we can't, unless this works...
tnx

"Jim Macklin" wrote:

Yes, there is a command line interface and many former DOS
commands are still supported. Some are not and there are
some changes in switches.
To see a list of commands, open the command window by
Start/Run "cmd" to see a list of supported coomands type
"help" (without the quotes, in each case)
Type a command with a space followed by a slash and question
mark to see a list of the switches such as ...
*************************
C:\Documents and Settings\help
For more information on a specific command, type HELP
command-name
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.

C:\Documents and Settings\xcopy /?
Copies files and directory trees.

XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S
[/E]] [/V] [/W]
[/C]
[/Q] [/F] [/L] [/G]
[/H] [/R] [/T] [/u]
[/K] [/N] [/O] [/X] [/Y] [/-Y]
[/Z]
[/EXCLUDE:file1[+file2][+file3]...]

source Specifies the file(s) to copy.
destination Specifies the location and/or name of new
files.
/A Copies only files with the archive attribute
set,
doesn't change the attribute.
/M Copies only files with the archive attribute
set,
turns off the archive attribute.
/D:m-d-y Copies files changed on or after the
specified date.
If no date is given, copies only those files
whose
source time is newer than the destination
time.
/EXCLUDE:file1[+file2][+file3]...
Specifies a list of files containing strings.
Each string
should be in a separate line in the files.
When any of the
strings match any part of the absolute path
of the file to be
copied, that file will be excluded from being
copied. For
example, specifying a string like \obj\ or
..obj will exclude
all files underneath the directory obj or all
files with the
.obj extension respectively.
/P Prompts you before creating each destination
file.
/S Copies directories and subdirectories except
empty ones.
/E Copies directories and subdirectories,
including empty ones.
Same as /S /E. May be used to modify /T.
/V Verifies each new file.
/W Prompts you to press a key before copying.
/C Continues copying even if errors occur.
/I If destination does not exist and copying
more than one file,
assumes that destination must be a directory.
/Q Does not display file names while copying.
/F Displays full source and destination file
names while copying.
/L Displays files that would be copied.
/G Allows the copying of encrypted files to
destination that does
not support encryption.
/H Copies hidden and system files also.
/R Overwrites read-only files.
/T Creates directory structure, but does not
copy files. Does not
include empty directories or subdirectories.
/T /E includes
empty directories and subdirectories.
/U Copies only files that already exist in
destination.
/K Copies attributes. Normal Xcopy will reset
read-only attributes.
/N Copies using the generated short names.
/O Copies file ownership and ACL information.
/X Copies file audit settings (implies /O).
/Y Suppresses prompting to confirm you want to
overwrite an
existing destination file.
/-Y Causes prompting to confirm you want to
overwrite an
existing destination file.
/Z Copies networked files in restartable mode.

The switch /Y may be preset in the COPYCMD environment
variable.
This may be overridden with /-Y on the command line.

C:\Documents and Settings\
*************
To copy from the command window, right click, select copy
and then paste into a normal window document or file.


--
The people think the Constitution protects their rights;
But government sees it as an obstacle to be overcome.


"Lexus" wrote in message
...
| Getting new computer with WinXP. After living with Win95,
98, and ME (for
| last 4 years), I am very familiar with both registry mods
and DOS batch files.
| From what I see, my registry knowledge is still usable,
but understand DOS
| is no longer underlying XP.
| Are any DOS commands still usable to automate some tasks?
|
| Thanks


[/i]

  #5  
Old October 18th 04, 02:53 PM
mayo
external usenet poster
 
Posts: n/a
Default Windows XP and DOS commands

Nice post Jim -
This is a second attempt to add a reply, the first one supposedly didn't go
thru.
I'm adding this reply to see if a copy will be forwarded to my e-mail as
asked.
With the previous format for this forum that could easily be done...
tnx

"Jim Macklin" wrote:

Yes, there is a command line interface and many former DOS
commands are still supported. Some are not and there are
some changes in switches.
To see a list of commands, open the command window by
Start/Run "cmd" to see a list of supported coomands type
"help" (without the quotes, in each case)
Type a command with a space followed by a slash and question
mark to see a list of the switches such as ...
*************************
C:\Documents and Settings\help
For more information on a specific command, type HELP
command-name
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.

C:\Documents and Settings\xcopy /?
Copies files and directory trees.

XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S
[/E]] [/V] [/W]
[/C]
[/Q] [/F] [/L] [/G]
[/H] [/R] [/T] [/u]
[/K] [/N] [/O] [/X] [/Y] [/-Y]
[/Z]
[/EXCLUDE:file1[+file2][+file3]...]

source Specifies the file(s) to copy.
destination Specifies the location and/or name of new
files.
/A Copies only files with the archive attribute
set,
doesn't change the attribute.
/M Copies only files with the archive attribute
set,
turns off the archive attribute.
/D:m-d-y Copies files changed on or after the
specified date.
If no date is given, copies only those files
whose
source time is newer than the destination
time.
/EXCLUDE:file1[+file2][+file3]...
Specifies a list of files containing strings.
Each string
should be in a separate line in the files.
When any of the
strings match any part of the absolute path
of the file to be
copied, that file will be excluded from being
copied. For
example, specifying a string like \obj\ or
..obj will exclude
all files underneath the directory obj or all
files with the
.obj extension respectively.
/P Prompts you before creating each destination
file.
/S Copies directories and subdirectories except
empty ones.
/E Copies directories and subdirectories,
including empty ones.
Same as /S /E. May be used to modify /T.
/V Verifies each new file.
/W Prompts you to press a key before copying.
/C Continues copying even if errors occur.
/I If destination does not exist and copying
more than one file,
assumes that destination must be a directory.
/Q Does not display file names while copying.
/F Displays full source and destination file
names while copying.
/L Displays files that would be copied.
/G Allows the copying of encrypted files to
destination that does
not support encryption.
/H Copies hidden and system files also.
/R Overwrites read-only files.
/T Creates directory structure, but does not
copy files. Does not
include empty directories or subdirectories.
/T /E includes
empty directories and subdirectories.
/U Copies only files that already exist in
destination.
/K Copies attributes. Normal Xcopy will reset
read-only attributes.
/N Copies using the generated short names.
/O Copies file ownership and ACL information.
/X Copies file audit settings (implies /O).
/Y Suppresses prompting to confirm you want to
overwrite an
existing destination file.
/-Y Causes prompting to confirm you want to
overwrite an
existing destination file.
/Z Copies networked files in restartable mode.

The switch /Y may be preset in the COPYCMD environment
variable.
This may be overridden with /-Y on the command line.

C:\Documents and Settings\
*************
To copy from the command window, right click, select copy
and then paste into a normal window document or file.


--
The people think the Constitution protects their rights;
But government sees it as an obstacle to be overcome.


"Lexus" wrote in message
...
| Getting new computer with WinXP. After living with Win95,
98, and ME (for
| last 4 years), I am very familiar with both registry mods
and DOS batch files.
| From what I see, my registry knowledge is still usable,
but understand DOS
| is no longer underlying XP.
| Are any DOS commands still usable to automate some tasks?
|
| Thanks


[/i]

  #6  
Old October 18th 04, 02:59 PM
Wesley Vogel
external usenet poster
 
Posts: n/a
Default Windows XP and DOS commands

Command-line reference
http://www.microsoft.com/resources/d.../ntcmds_o.mspx

Command-line reference A-Z
http://www.microsoft.com/resources/d.../ntcmds_o.mspx

Or

Start | Run and copy and paste the following line:

%windir%\hh.exe ms-its:c:\Windows\Help\ntcmds.chm::/ntcmds.htm

Click OK
-----

Start | Run and copy and paste the following line:

hh ntcmds.chm

Click OK

--
Hope this helps. Let us know.
Wes

In ,
Lexus hunted and pecked:
Getting new computer with WinXP. After living with Win95, 98, and ME
(for last 4 years), I am very familiar with both registry mods and
DOS batch files. From what I see, my registry knowledge is still
usable, but understand DOS
is no longer underlying XP.
Are any DOS commands still usable to automate some tasks?

Thanks


  #7  
Old October 18th 04, 06:37 PM
Jim Macklin
external usenet poster
 
Posts: n/a
Default Windows XP and DOS commands

If you are using Outlook Express or some other news reader,
you should be able to just use reply and on that page's View
menu, set "all headers" and then you just type your email
address in Cc.
If you are using the web interface CDO, there should be a
fwd button.


--
The people think the Constitution protects their rights;
But government sees it as an obstacle to be overcome.


"mayo" wrote in message
...
| Nice post Jim -
| This is a second attempt to add a reply, the first one
supposedly didn't go
| thru.
| I'm adding this reply to see if a copy will be forwarded
to my e-mail as
| asked.
| With the previous format for this forum that could easily
be done...
| tnx
|
| "Jim Macklin" wrote:
|
| Yes, there is a command line interface and many former
DOS
| commands are still supported. Some are not and there
are
| some changes in switches.
| To see a list of commands, open the command window by
| Start/Run "cmd" to see a list of supported coomands
type
| "help" (without the quotes, in each case)
| Type a command with a space followed by a slash and
question
| mark to see a list of the switches such as ...
| *************************
| C:\Documents and Settings\help
| For more information on a specific command, type HELP
| command-name
| 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.
|
| C:\Documents and Settings\xcopy /?
| Copies files and directory trees.
|
| XCOPY source [destination] [/A | /M] [/D[:date]] [/P]
[/S
| [/E]] [/V] [/W]
| [/C] [/i] [/Q] [/F] [/L] [/G]
| [/H] [/R] [/T] [/u]
| [/K] [/N] [/O] [/X] [/Y]
[/-Y]
| [/Z]
|
[/EXCLUDE:file1[+file2][+file3]...]
|
| source Specifies the file(s) to copy.
| destination Specifies the location and/or name of new
| files.
| /A Copies only files with the archive
attribute
| set,
| doesn't change the attribute.
| /M Copies only files with the archive
attribute
| set,
| turns off the archive attribute.
| /D:m-d-y Copies files changed on or after the
| specified date.
| If no date is given, copies only those
files
| whose
| source time is newer than the destination
| time.
| /EXCLUDE:file1[+file2][+file3]...
| Specifies a list of files containing
strings.
| Each string
| should be in a separate line in the
files.
| When any of the
| strings match any part of the absolute
path
| of the file to be
| copied, that file will be excluded from
being
| copied. For
| example, specifying a string like \obj\
or
| ..obj will exclude
| all files underneath the directory obj or
all
| files with the
| .obj extension respectively.
| /P Prompts you before creating each
destination
| file.
| /S Copies directories and subdirectories
except
| empty ones.
| /E Copies directories and subdirectories,
| including empty ones.
| Same as /S /E. May be used to modify /T.
| /V Verifies each new file.
| /W Prompts you to press a key before
copying.
| /C Continues copying even if errors occur.
| /I If destination does not exist and copying
| more than one file,
| assumes that destination must be a
directory.
| /Q Does not display file names while
copying.
| /F Displays full source and destination file
| names while copying.
| /L Displays files that would be copied.
| /G Allows the copying of encrypted files to
| destination that does
| not support encryption.
| /H Copies hidden and system files also.
| /R Overwrites read-only files.
| /T Creates directory structure, but does not
| copy files. Does not
| include empty directories or
subdirectories.
| /T /E includes
| empty directories and subdirectories.
| /U Copies only files that already exist in
| destination.
| /K Copies attributes. Normal Xcopy will
reset
| read-only attributes.
| /N Copies using the generated short names.
| /O Copies file ownership and ACL
information.
| /X Copies file audit settings (implies /O).
| /Y Suppresses prompting to confirm you want
to
| overwrite an
| existing destination file.
| /-Y Causes prompting to confirm you want to
| overwrite an
| existing destination file.
| /Z Copies networked files in restartable
mode.
|
| The switch /Y may be preset in the COPYCMD environment
| variable.
| This may be overridden with /-Y on the command line.
|
| C:\Documents and Settings\
| *************
| To copy from the command window, right click, select
copy
| and then paste into a normal window document or file.
|
|
| --
| The people think the Constitution protects their rights;
| But government sees it as an obstacle to be overcome.
|
|
| "Lexus" wrote in
message
|
...
| | Getting new computer with WinXP. After living with
Win95,
| 98, and ME (for
| | last 4 years), I am very familiar with both registry
mods
| and DOS batch files.
| | From what I see, my registry knowledge is still
usable,
| but understand DOS
| | is no longer underlying XP.
| | Are any DOS commands still usable to automate some
tasks?
| |
| | Thanks
|
|
|


  #8  
Old October 18th 04, 07:09 PM
Ken Blake
external usenet poster
 
Posts: n/a
Default Windows XP and DOS commands

In ,
Lexus typed:

Getting new computer with WinXP. After living with Win95, 98,
and ME
(for last 4 years), I am very familiar with both registry mods
and
DOS batch files. From what I see, my registry knowledge is
still
usable, but understand DOS
is no longer underlying XP.
Are any DOS commands still usable to automate some tasks?



It's true that there is no real MS-DOS in Windows XP. However XP
has a command prompt available, which emulates DOS. In Windows
XP, if you go to Start | Run, and enter CMD, this command prompt
window opens. Within it, most old DOS commands work, and you can
do many of the things you used to do in DOS.

--
Ken Blake - Microsoft MVP Windows: Shell/User
Please reply to the newsgroup


  #9  
Old October 18th 04, 07:11 PM
Ken Blake
external usenet poster
 
Posts: n/a
Default Windows XP and DOS commands

In ,
mayo typed:

Nice post Jim -
I'm replying to your post in an attempt to "forward" a copy to
my
e-mail.
We used to be able to do that easily with the previous format
for
this forum, but now we can't, unless this works...



You are using the web interface to read this newsgroup--it's the
slowest, clunkiest, most error-prone method there is. Whether
you can forward a message to your E-mail account, I'm not sure,
but do yourself a favor and switch to a newsreader, such as
Outlook Express, which comes with Windows.



See http://www.michaelstevenstech.com/ou...snewreader.htm


--
Ken Blake - Microsoft MVP Windows: Shell/User
Please reply to the newsgroup


  #10  
Old October 18th 04, 08:16 PM
R. C. White
external usenet poster
 
Posts: n/a
Default Windows XP and DOS commands

Hi, Mayo.

Click he
news://msnews.microsoft.com/microsof...dowsxp.general

Unless blocked by something like a corporate firewall, that one click
should:

1. Start Outlook Express;

2. Create a News Account for the Microsoft public news server, which is
free and does not require you to long on;

3. Open this WinXP General newsgroup; and

4. Download the 300 newest messages for you to read.

In other words, it should bring you right back here, but using the
Newsreader interface, rather than this Web-based interface. Most of the
people asking questions here use the Web, but most of the people answering
the questions use OE or another newsreader.

Afterwards, if you like, you can configure OE to suit yourself: Subscribe
to other NGs, Show or don't show the Preview Pane, Delete posts X days after
downloading, etc.

Try it; you might like it! ;)

RC
--
R. C. White, CPA
San Marcos, TX

Microsoft Windows MVP

"mayo" wrote in message
...
Nice post Jim -
This is a second attempt to add a reply, the first one supposedly didn't
go
thru.
I'm adding this reply to see if a copy will be forwarded to my e-mail as
asked.
With the previous format for this forum that could easily be done...
tnx

"Jim Macklin" wrote:

Yes, there is a command line interface and many former DOS
commands are still supported. Some are not and there are
some changes in switches.
To see a list of commands, open the command window by
Start/Run "cmd" to see a list of supported coomands type
"help" (without the quotes, in each case)

SNIP


"Lexus" wrote in message
...
| Getting new computer with WinXP. After living with Win95,
98, and ME (for
| last 4 years), I am very familiar with both registry mods
and DOS batch files.
| From what I see, my registry knowledge is still usable,
but understand DOS
| is no longer underlying XP.
| Are any DOS commands still usable to automate some tasks?
|
| Thanks


  #11  
Old October 19th 04, 11:11 AM
Alex Nichol
external usenet poster
 
Posts: n/a
Default Windows XP and DOS commands

Lexus wrote:

Getting new computer with WinXP. After living with Win95, 98, and ME (for
last 4 years), I am very familiar with both registry mods and DOS batch files.
From what I see, my registry knowledge is still usable, but understand DOS
is no longer underlying XP.
Are any DOS commands still usable to automate some tasks?


XP does not include a real mode DOS: It does include a DOS emulation,
which uses mostly the same command set, so that things like bat files
can run with little change. There are some adjustments to make,
variations on switches, so use /? to check things out. For example
there is no RMDIR - but DEL now has a /S switch to 'apply to folders'

--
Alex Nichol MS MVP (Windows Technologies)
Bournemouth, U.K. (remove the D8 bit)
  #12  
Old October 21st 04, 11:48 PM
Steve Nielsen
external usenet poster
 
Posts: n/a
Default Windows XP and DOS commands

Jim Macklin wrote:

If you are using Outlook Express or some other news reader,
you should be able to just use reply and on that page's View
menu, set "all headers" and then you just type your email
address in Cc.
If you are using the web interface CDO, there should be a
fwd button.



Or simply select all the text, copy, then paste into Wordpad.

Steve

  #13  
Old April 27th 05, 11:33 PM
MartWalk
external usenet poster
 
Posts: n/a
Default

As a side bar, does anyone know which command or code to use to replace
"CHOICE" which isn't supported in XP. I used this command extensively in some
menus I've written to handle my old DOS games.
  #14  
Old April 28th 05, 11:02 AM
Torgeir Bakken \(MVP\)
external usenet poster
 
Posts: n/a
Default

MartWalk wrote:

As a side bar, does anyone know which command or code to use to
replace "CHOICE" which isn't supported in XP. I used this command
extensively in some menus I've written to handle my old DOS games.

Hi

SET /P can be used:

@echo off
set /p NAME=Enter your name:
echo %NAME%
pause


If you want a windows dialog box (launched from your batch file), you
can use use freeware utilities for this:

Batch Utilities & Tools for DOS
http://home.mnet-online.de/horst.muc/main.htm


Batch Query - The program provides a way to produce Windows dialogs to ask
questions or provide information during logon script or batch file processing.
The included "example.bat" shows each type of dialog produced.

http://wettberg.home.texas.net/freeware.htm



--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scr...r/default.mspx
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off






All times are GMT +1. The time now is 11:02 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.