使用不同的用户名和密码将文件复制到网络共享 [英] Copy file to a network share with different username and password

查看:64
本文介绍了使用不同的用户名和密码将文件复制到网络共享的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道这在 Perl 中是可能的

I was wondering of this is possible in Perl

我想访问网络文件共享 (NT) 以使用不同的用户名和密码复制文件

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

这个 perl 脚本是构建的一部分,将在服务器中运行,无需任何用户交互

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

谢谢

卡西克

推荐答案

这篇关于 perlmonks 的帖子似乎涵盖了主题:http://www.perlmonks.org/?node_id=491533

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

Win32::NetResource 有一个 AddConnection 函数,你可以将 USERNAMEPASSWORD 传递给.

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

这篇关于使用不同的用户名和密码将文件复制到网络共享的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆