KK99
KK99

Reputation: 1989

Copy file to a network share with different username and password

I was wondering of this is possible in Perl

I want to access a network file share (NT) to copy a file using different username and password

This perl script is part of build and will be running in server without any user interaction

Thanks

Karthik

Upvotes: 3

Views: 1878

Answers (1)

eckes
eckes

Reputation: 67087

This post on perlmonks seems to cover that topic: http://www.perlmonks.org/?node_id=491533

Win32::NetResource has an AddConnection function that you could pass USERNAME and PASSWORD to.

Upvotes: 2

Related Questions