Home > Software engineering >  From the local upload files to the server
From the local upload files to the server

Time:09-30

@ echo off
Echo.
Color 5 f
Echo.
Net use \ \ server address "server machine user password/user" : "administrator"
Xcopy local will copy the files directory \ \ need to copy to the folder on the server directory/y


Echo.

Echo.

Echo.

CodePudding user response:

Mapping a network drive (such as Z:) you can use the
 net use Z: \ \ \ Shared name server address "server machine user password/user" : "administrator" 
Xcopy local will copy the file directory of Z: \ server directory \/y
Net use Z:/delete

CodePudding user response:

C: \ & gt; .net help use
This command syntax is:


NET USE
[devicename | *] [\ \ computername \ sharename [\ volume] [password | *]]
Username] [/USER: [domainname \]
[/USER: [dotted domain name \] username]
[/USER: [username @ dotted domain name]
[/SMARTCARD]
[/SAVECRED]
[[/DELETE] | [/PERSISTENT: {YES | NO}]]

NET USE {devicename | *} [password | *]/HOME

NET USE//PERSISTENT: {YES | NO}


NET USE computer and Shared resources are used to connect, or cut off the computer and Shared information
Source connection, when using this command with no options, it lists the computer connection,

Devicename specify a name so that connected with the resource, or designated equipment to cut off,
There are two types of device name: disk drives (D: to Z:) and printer
(LPT1: to LPT3:), enter an asterisk instead of a specified device
Who can distribute the next available device name,
\ \ computername controlling the computer name of a Shared resource, if the computer name contains a
Null character, will double backslash (\ \) and computer name together with quotation marks
Enclosed (" "), the computer name can have 1 to 15 characters,
\ sharename refers to a Shared resource network name,
NetWare roll \ volume to specify a server, the user must install NetWare
Customer service (Windows workstations) or Netware gateway service
(Windows server) and connected to the NetWare servers,
Password, the password to access to a Shared resource need
* password prompt, when under the password prompt enter the password, the password will not display,
/USER to specify the connection of a different USER name,
Domainname specify another domain, if the default domain, will use the current log in domain,
The username specified login user name,
/SMARTCARD specified connection using credentials on smart card,
Reserves/SAVECRED specified user name and password, this switch is ignored, unless the command prompt using
Username and password,
/HOME users connected to their HOME directory,
Cancel/DELETE a network connection, and DELETE the connection, from the permanent connection list
/PERSISTENT control the use of a permanent network connection, its default value is recently used Settings,
YES when connecting to produce save them, and restore them when next time you log in,
NO not saving the connection or subsequent connection; The existing connection will be in the next post
Its recovery, can use/DELETE option switch to remove a permanent connection,
NET HELP command | MORE displays HELP for each screen,

  • Related