Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to access another computer in VB?

Posted on 1998-09-02
7
Medium Priority
?
177 Views
Last Modified: 2010-04-30
Hello.  I need to access a lot of other computers in my program and right now the only way I know is to map their hard drive in my computer but I DON't WANT that because I can only map until drive Z.  Is there another way?
0
Comment
Question by:Nene19
[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
7 Comments
 
LVL 3

Expert Comment

by:HATCHET
ID: 1432648
Be more specific about what you want to be doing.  I've done programs before that go out and change registry settings on network computers before, but that sounds different.  Do you just want to see them and their shared direcotries, or what ?

HATCHET
0
 

Accepted Solution

by:
susdash earned 200 total points
ID: 1432649
If you ae using Win NT, then you can access other computers or servers by specifying the  the servername and filename by the following command line

\\<MachineName>\<Directoryname>\<filename>
0
 

Author Comment

by:Nene19
ID: 1432650
SUSDASH, How can I code this in VB?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:Nene19
ID: 1432651
What I really need to do is to make a code that copies files to various computers in our network.  
\\<MachineName>\<Directoryname>\<filename> is okay to access the file I want but how can I code this?

Thank you.

0
 
LVL 14

Expert Comment

by:waty
ID: 1432652
I have have VB code to map/unmap drives from other computers.
0
 
LVL 3

Expert Comment

by:HATCHET
ID: 1432653
Nene19,

If all you want to do is copy filies from say your computer to a network server or a computer on the network, you'd use code similar to the code below to do it :


  Dim SourceFile, DestinationFile   ' Define Variables  
  SourceFile = "C:\ReadMe.txt"   ' Define source file name.
  DestinationFile = "\\NT_Server\SharedDir\ReadMe.txt"   ' Define target file name.
  FileCopy SourceFile, DestinationFile   ' Copy source to target.


You can write a routine that will go through a loop and tell you what all the names of the computers on the network are and the total number of computers on the network, but that's a whole different story.   =)

HATCHET

0
 

Author Comment

by:Nene19
ID: 1432654
What if I want to copy file to another workstation in the network?  How will I do that?
0

Featured Post

Enroll in September's Course of the Month

This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

688 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