?
Solved

Copying files from password-protected folder via LAN

Posted on 2004-04-11
5
Medium Priority
?
432 Views
Last Modified: 2012-05-04
Hi experts,
I need to copy some files from password-protected folders via LAN. I guess there should be 2 (or more) ways to do it.
- First way is to use Windows API function within VB code.
-The other one is to use VB6.0 itself FileSystemObject.
I can easily copy files if folders that contain the files are NOT password-protected: Using
VB6.0 FileSystemObject just setting like
               
         FSys.CopyFile "\\RemoteMachine\Folder1\*.txt",  "\c:\MyFilesFolder"

where FSys is VB6.0  FileSystemObject.

My problem is Folder1 is now password-protected.

Need a help to solve this task.
Thanks in advance,
Ganna
0
Comment
Question by:Ganaa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 10803580
>>Need a help to solve this task.<<
And we need your help to maintain this very old open question:
10/07/2003 20 Moving database file from a computer to ...  Open Microsoft SQL Server
http://www.experts-exchange.com/Databases/Microsoft_SQL_Server/Q_20760078.html
0
 
LVL 7

Accepted Solution

by:
CleffedUp earned 150 total points
ID: 10804314
Prior to copy you can authenticate to the target machine...

Shell "net use  \\MachineName\c$ /user:username password", vbHide
or
Shell "net use  \\MachineName\MyFilesFolderShare /user:username password", vbHide

Then copy away!

Regards
0
 

Author Comment

by:Ganaa
ID: 10832254
Thanks for the help. It gives no error, but doesn't work. Could you please be more in detail, i.e, provide code fragment or refer something
Ganna  
0
 

Author Comment

by:Ganaa
ID: 11255617
I didn't realize that net use is a MS DOS command. It works now. Thanks.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month14 days, 4 hours left to enroll

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question