in reply to open dir on Win32

ACK! system calls! I like to keep thinks Perl. You might take a look at Win32::FileOp for doing mounts.

As Fletch suggested, use $! to get the error message

I do hate suggesting it, but do verify your security access on the folders inquestion.

Replies are listed 'Best First'.
Re: Re: open dir on Win32
by HamNRye (Monk) on Jan 17, 2003 at 21:04 UTC

    FileOp is good for mounting, but that is not what I really want to do. I just want to get a directories contents by using opendir(DIR, \\Server\path);

    ~Hammy

      Again check your security and you might try your computer names at lowercase.

      I ran your do_wire and get_dir(without the grep) and saw files in two folders that were not shared.

        Thanks Marza... I have had this problem for a little over a month now, and I cannot figure why it would work on one box and not the other.... Hmmm....

        The script runs as me, and I know I have access to these folders.... It is baffling. Next step might just be re-installing perl....

        ~Hammy