Solved

Checking what files are on a remote computer

Posted on 1998-10-02
4
123 Views
Last Modified: 2010-04-30
I would like to check a server for a certain file because
I would eventually like to save some files to that server
without overwriting any of the existing ones.  Do you
know how I could do that?
0
Comment
Question by:impega
[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
  • 2
4 Comments
 
LVL 12

Expert Comment

by:mark2150
ID: 1437814
As long as you have a drive pointing to the server you can look for the file just like it was local. Any other method will essentially start with establishing a drive connection to the server.
0
 

Author Comment

by:impega
ID: 1437815
How do I set up that drive and search for the file in VB?
0
 

Author Comment

by:impega
ID: 1437816
Thanks for the reply but I need a little bit more detail.  How do I map the drive and
search for a file in VB?
0
 
LVL 12

Accepted Solution

by:
mark2150 earned 50 total points
ID: 1437817
You generally don't map the drive in VB (although you could with a SHELL statement...) The connection to the drive should be done at the OS level prior to your program running. This is a machine level configuration item and you generally don't want to be dynamically assigning drives. You can do it, but it is considered poor practice as it can cause problems elsewhere in the system. Your users will generally have their drive letters assigned at login time or they can manually create a mapping in MY COMPUTER. Either way the drive letter should be a *given* to your program and not something that you have to create dynamically. If the drive letters are established in the system master login script they will be universally available. System administrators usually provide an environment var with drive letters in them or you can create your own. Then your program can respond to different systems as the drive letter moves.

M
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month10 days, 6 hours left to enroll

628 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