Solved

Copying files from password-protected folder via LAN

Posted on 2004-04-11
5
377 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
  • 2
5 Comments
 
LVL 75

Expert Comment

by:Anthony Perkins
Comment Utility
>>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 50 total points
Comment Utility
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
Comment Utility
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
Comment Utility
I didn't realize that net use is a MS DOS command. It works now. Thanks.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…

771 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now