「ネットワークコンピュータ」や「マイネットワーク」のフォルダをドライブに割当てる
ネットワークドライブの割り当ては、WSHで簡単にできるらしい。
ちなみにMapNetworkDriveの第4引数は、ユーザIDです。
詳細は、参考URLへアクセスしてみてください。
Dim FS, WshNet Const strDrive = "Z:" Set FS = CreateObject("Scripting.FileSystemObject") Set WshNet = CreateObject("WScript.Network") If Not FS.DriveExists(strDrive) Then WshNet.MapNetworkDrive strDrive, "\\コピー先PC\コピー先フォルダ", False, , "パスワード" End If FS.CopyFile "コピー元パス", strDrive & "\", True Set WshNet = Nothing Set FS = Nothinghttp://oshiete1.goo.ne.jp/kotaeru.php3?q=1514291
参考URL:
http://www.atmarkit.co.jp/fwin2k/operation/wsh08/wsh08_02.html