Räuber Hotzenplotz has asked for the wisdom of the Perl Monks concerning the following question:

Howdy monks,

does anybody know how I could use Win32::API to accomplish creating a "web folder", which is usually done via the wizard that pops up in My Network Places ->Add Network Place?

Replies are listed 'Best First'.
Re: Win32::API: How to create a web folder?
by PodMaster (Abbot) on Apr 29, 2004 at 00:29 UTC
    You just use Win32::API. Here are the steps
    1. Figure out what DLLs are is being loaded
    2. Figure out what functions are being called
    3. Translate that to perl ( use Win32::API ... )
    Pretty easy, no? Good luck.

    update: You can use "Process Explorer" to figure out which DLLs are being loaded ... google ... msdn ...

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

Re: Win32::API: How to create a web folder?
by gellyfish (Monsignor) on Apr 29, 2004 at 11:44 UTC

    I think that a "web folder" is essentially just a form of shortcut in reality, you just have a folder in your "NetHood" folder with whatever name you want and in there you have a shortcut called "target.lnk" - you can create that shortcut using Win32::Shortcut . There probably is some Shell* API to this as well.

    /J\