Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vb script to copy file to another computer via local area network

Status
Not open for further replies.

keshavtale

Technical User
Dec 13, 2020
2
IN
ana.xlsm this is the file which i want to copy to another computer, this file located on server on e drive
which i want to copy that computer which name is pravin, copy this file on pravin computer on d drive
and everytime i copy it should overwrite , when i run vbscript on server that file should be copied on pravin computer on d drive
 
I use following coe it is working only on local harddisk drive it means that code only copying file on same
harddrive from c drive to d drive i dont know where to insert network path and what is syntax of that code to insert network path

Dim FSO
Set FSO = CreateObject("Scripting.FileSystemObject")

FSO.CopyFile "C:\op\ANA.xlsm", "d:\city\
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top