Hi there:

I have written a function in vbscript that accepts a selected file path and converts it to UNC path using ActiveX
CreateObject("Scripting.FileSystemObject")

Now I would like to use same function in my php code...

I there a way php to call
CreateObject("Scripting.FileSystemObject")

or how do I, Convert a mounted drive into a UNC path

Any other workaround would be much appreciated

Thanks a lot..

Biju

    Posting the same question twice won't really get it answered any more quickly, if at all.

    I've never heard of UNC drives until now, but from looking over at Google I'm not really sure it can be done with PHP anyhows.

      I guess there is no harm in trying to repost it again - altelast I got your attention :-)

      UNC path...hmmmm

      Let me explain it...

      I u r in a network enviroment, one would like to make use of shared folders. To make use of a shared folder I would map a drive letter to that folder

      for example j:=\testpc\pictures

      now if I select a file from that dive it will be as follows
      j:\temp.txt

      My vbscript code will convert the the j: drive to \testpc\pictures.

      Is there any way in PHP that I can do this..

      Thanks for all yout help

      Let me know if u need more info on this...

      Biju

        UNC = UVN = Universal Naming Convention = Universal Volume Name

        \[IP]or[name]\volume

        very windows

          the mounted drives info is stored in the registry in windows, if you want to access this info from your windows web server (IIS/PWS or Apache) you need to redeclare the advapi.dll function to access the registry (don't think we can access it through native PHP) or call a VBScript shell from a PHP script which will share the info through memory or a file (nauseous now...)

            Write a Reply...