VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Copy specified file to terminals of a workgroup

H W Samuel  (4 Submissions)   Miscellaneous   VB 6.0   Unknown Difficulty   Sat 10th July 2004   Mon 8th February 2021

Copy specified file to terminals of a workgroup

API Declarations


'This is a simple logic program that tries to copy a file onto terminals on a workgroup.
'It utilizes a simple flaw in terminal naming in my part of the world
'that gives a general name to each terminal followed by an incremental number
'e.g.USER1, USER2, etc.
'It is assumed that all computers in the workgroup will have the same operating system
'All this won't work if file sharing is disabled on the destination computers

'You will need to paste these codes into a module, and then call the SPREAD_POX from an activation point
'e.g.Form_Load, CommandButton1_Click,etc.
'-----------------------------------------------------------------------------------------------------
Option Explicit
'I got this function from the API-Guide on www.allapi.net
'This function gets the name of the computer on which this code is running
Private Declare Function GetComputerName Lib "kernel32.dll" Alias "GetComputerNameA" (ByVal lpBuffer As String, ByRef nSize As Long) As Long
Private Const MAX_COMPUTERNAME_LENGTH As Long = 31


Rate Copy specified file to terminals of a workgroup (1(1 Vote))
Copy specified file to terminals of a workgroup.bas

Copy specified file to terminals of a workgroup Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters