Don't ask to ask, just ask | |
PerlMonks |
Re: Remote Win32 Userby AcidHawk (Vicar) |
on Nov 14, 2003 at 15:11 UTC ( [id://307063]=note: print w/replies, xml ) | Need Help?? |
I think you are looking for Win32::NetResource Code Snippet: you can noe check on $NetResource{LocalName} for the file you want. You are effectively mapping a drive to a remote share with specified credentials. Update: You can put this code into a win32 service which starts as any user and connect with the local user from the remote machine. (You might need to put the machine name that you are connecting to in front of the remote username ie. remotemachine\remoteuser..) Update2: You will need to have NetBIOS (I think) access through the firewall.. basically if you can map a drive from the machine with perl to the remote machine, you can use the above code..;) -----Of all the things I've lost in my life, its my mind I miss the most.
In Section
Seekers of Perl Wisdom
|
|