codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Open a shared folder  ammar.pdf at 09:09 on Wednesday, September 08, 2010
 


Hi All,

I need to create a perl script to open network shared folder (//server/folder) then I need to count its files.

I used :
--------------------------
opendir(ETC,"//lion/tmp") || die "Error ?: $!";
while ($name = readdir(ETC)) {
print "$name\n";
}
closedir(ETC);
--------------------------

and it worked fine.

But the problem is when the server require a username and password to grant the access.

- How can I pass the username and the password to the server to open the folder ?
- Is there any other way to do that (instead of the previous method)?

Note: the perl script will be run under windows platform and the server maybe Windows or Linux(samba).

Thanks.

- Ammar










CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Sign up to get special pricing and save 25%
•  Re: horizontal scroll bar for drop down list box
•  Open a shared folder
•  Re: data list and JavaScript in asp.net 2.0
•  Re: need help creating mysql database for my java code
•  Re: Write text strings to Serial Port
•  Water volume
•  Solr- New face of Search
•  Re: Insert Contents of .txt file into a .html page


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2010