enable/disable firewall
netsh advfirewall set currentprofile state off netsh advfirewall set allprofiles state off
enable file sharing:
netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=Yes, and hit Enter.
create share folder:
net share Public=s:\Public /GRANT:Everyone,FULL
net share share_folder_name /delete
map share folder:
net use Z: \\computer_name\share_name /PERSISTENT:YES
net use Z: /delete
Copy folder recursive:
Xcopy C:\test D:\test /E /H /C /I
/E – Copy subdirectories, including any empty ones.
/H - Copy files with hidden and system file attributes
/C - Continue copying even if an error occurs.
/I - If in doubt, always assume the destination is a folder. e.g. when the destination does not exist.
sd
No comments:
Post a Comment
Terima kasih