Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Transfer Files On Windows Network

DZone's Guide to

Transfer Files On Windows Network

·
Free Resource
From Fadly Tabrani's recipe.
You need his implementation of netcopy, netmove, netdelete.
pywin32 extension required.

# Copy "c:\documents" folder/file to "c:\transferred" on host "w0001".
netcopy('w0001', 'c:\\documents', 'c:\\transferred')

# Move with account credentials.
netmove('w0001', 'c:\\documents', 'c:\\transferred', 'admin', 'adminpass')

# Delete with another account.
netdelete('w0001', 'c:\\transferred', 'testdom\\user1', 'user1pass')
Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}