text
stringlengths
0
4.23k
nnn files replaced
no file added
no file replaced
If you're using floppy disks and you need to switch disks while running this command, you can specify the /w command-line option so that this command waits for you to switch the disks.
You can't use this command to update hidden files or system files.
The following table shows each exit code and a brief description of its meaning:
Exit code
Description
0
This command successfully replaced or added the files.
1
This command encountered an incorrect version of MS-DOS.
2
This command couldn't find the source files.
3
This command couldn't find the source or destination path.
5
The user doesn't have access to the files that you want to replace.
8
There is insufficient system memory to carry out the command.
11
The user used the wrong syntax on the command line.
Note
You can use the ERRORLEVEL parameter on the if command line in a batch program to process exit codes that are returned by this command.
Examples
To update all the versions of a file named Phones.cli (which appear in multiple directories on drive C:), with the latest version of the Phones.cli file from a floppy disk in drive A:, type:
replace a:\phones.cli c:\ /s
rescan
Using the diskpart command interpreter, you can locate new disks added to your computer.
Syntax
rescan
reset session
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012
Enables you to reset (delete) a session on a Remote Desktop Session Host server. You should reset a session only when it malfunctions or appears to have stopped responding.
Note
To find out what's new in the latest version, see What's New in Remote Desktop Services in Windows Server.
Syntax
reset session {<sessionname> | <sessionID>} [/server:<servername>] [/v]
Parameters
Parameter
Description
<sessionname>
Specifies the name of the session that you want to reset. To determine the name of the session, use the query session command.
<sessionID>
Specifies the ID of the session to reset.
/server:<servername>
Specifies the terminal server containing the session that you want to reset. Otherwise, it uses the current Remote Desktop Session Host server. This parameter is required only if you use this command from a remote server.
/v
Displays information about the actions being performed.
/?
Displays help at the command prompt.
<sessionname>
<sessionID>
<servername>
Remarks
Examples
To reset the session designated rdp-tcp#6, type:
reset session rdp-tcp#6
To reset the session that uses session ID 3, type:
reset session 3