in reply to W32: How can cgi scripts access shares on other w32 servers

You'll want to look in the docs for Win32::NetResource. You can use RESOURCETYPE_ANY to avoid mapping a drive (just authenticate and hold connection) or, if you prefer the non-stored-password approach, you can make calls to "NET USE /user:foobar \\SERVER\IPC$". Don't forget to close connections when you're done! Oh, just a caveat: if you run this script on a 9x machine, you must have a matched up user and password, it won't let you use a different username.

----mhoward----
  • Comment on Re: W32: How can cgi scripts access shares on other w32 servers