I was searching for accessing samba using DOS command, Finally I managed it by own; here is list of useful command.
To mount or to map the SAMBA folder to local machine.
eg; to map public folder from and copy test.txt
use :- net use z: \\computer\folder
Map the Z: drive to the network path //computer/folder.
net use z: \\2.168.4.500\public
enter user-name (if connecting first time)
enter password
To copy the data to this drive
ie to put file
copy test.txt \\2.168.4.500\public
to get the file
copy \\2.168.4.500\public\test.txt
To delete the connection
use
net use z: /del /yes
To mount or to map the SAMBA folder to local machine.
eg; to map public folder from and copy test.txt
use :- net use z: \\computer\folder
Map the Z: drive to the network path //computer/folder.
net use z: \\2.168.4.500\public
enter user-name (if connecting first time)
enter password
To copy the data to this drive
ie to put file
copy test.txt \\2.168.4.500\public
to get the file
copy \\2.168.4.500\public\test.txt
To delete the connection
use
net use z: /del /yes
Comments