in reply to Unavailable network drives in CGI scripts

Windows has more security contexts than just which user the script is run under. The CGI script likely doesn't have access to the desktop (can't open windows on the desktop) and I'm not surprised that it doesn't have access to mappings to network drives that were created from the desktop. It appears you can access the network drive (which isn't always possible from CGI scripts), so you could also just map the network drive.

It may also be the case that a drive mapped by one CGI script will be visible to other runs of CGI scripts, so you'd only have to map it once. Try it and see. Just map the drive if you find it isn't mapped.

- tye        

  • Comment on Re: Unavailable network drives in CGI scripts (context)

Replies are listed 'Best First'.
Re^2: Unavailable network drives in CGI scripts (context)
by Sprad (Hermit) on Dec 13, 2006 at 17:40 UTC
    Yes, this seems to have fixed it. I ran a net use with the same drive letter, same network path, and now I can see the drive both from CGI scripts and from the command line.

    Thanks!

    ---
    A fair fight is a sign of poor planning.