1.

Solve : file transfer help !!!?

Answer»

Hi brothers!!!

I want to create a program to copy a file like jet audio.exe form my

computer to another computer of my network. Ip of computer on network

is suppose 192.168.1.45.

FILE SHOULD BE COPPIED WITH IP ADDRESS INSTEAD OF USER NAME!!!

ANy help in Batch or script will be much appriciated!!

ThanksI don't know much, but you want to make a script/program to copy a file(s) to another computer in the network?You can do this in batch code.

Code: [Select]copy "jet audio.exe" \\192.168.1.45\shareName\folder

You can use an ADMINISTRATIVE share (ie. c$) name. If the IP addresses are given out by DHCP, this code will break. Why not use the computer name?

Code: [Select]copy "jet audio.exe" \\computerName\shareName\folder

Ya i tried that code but observed the error!

FILE ACCESS ERROR or ACCESS DENIED!


QUOTE

copy "jet audio.exe" \\192.168.1.45\shareName\folder

In this statment u hav't given the Drive path to copy the file e.g C:\ or D:\ etc

and also activate the file that is copied on the Network comptuer

Thankx

Did you try to use the administrative share? If you use a share name make sure the folder is shared on the remote system.

Code: [Select]copy "jet audio.exe" \\192.168.1.45\c$\folder

The access denied message can occur if you do not have permissions to the target folder. Does the file access error throw a NUMBER? This can occur if there is a registry error or there is an error with the source file (either the data or the attributes). Try checking the event log on the local machine.

Quote
In this statment u hav't given the Drive path to copy the file e.g C:\ or D:\ etc

When it comes to file paths, you can never provide too much INFORMATION:

Code: [Select]copy "drive:\path\jet audio.exe" "\\192.168.1.45\c$\folder"

Good luck.
Thanks brothers!
actually i m working in a computer lab having 50 pc's. So it's some time become
very difficult to check every pc for certain software and then install it. That's why
i was asking the question.
When Ever i try to do this always suffer form error Acess Denied
So how to avoide this error?

I aslo tried that in VBS

Dim fso
Const OverwriteExisting = True
Set fso = CreateObject("Scripting.FileSystemObject")
fso.CopyFile "I:\copy.bat", "\\192.168.1.18\c$\copy.bat", OverwriteExisting

but same error!!!!!


Discussion

No Comment Found