Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: file transfer help !!!  (Read 3891 times)

0 Members and 1 Guest are viewing this topic.

usman.sialkot

  • Guest
file transfer help !!!
« on: November 07, 2008, 09:03:12 PM »
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!!

Thanks

Carbon Dudeoxide

  • Global Moderator

  • Mastermind
  • Thanked: 169
    • Yes
    • Yes
    • Yes
  • Certifications: List
  • Experience: Guru
  • OS: Mac OS
Re: file transfer help !!!
« Reply #1 on: November 08, 2008, 03:53:45 AM »
I don't know much, but you want to make a script/program to copy a file(s) to another computer in the network?

Sidewinder



    Guru

    Thanked: 139
  • Experience: Familiar
  • OS: Windows 10
Re: file transfer help !!!
« Reply #2 on: November 08, 2008, 02:44:33 PM »
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

 8)
The true sign of intelligence is not knowledge but imagination.

-- Albert Einstein

usman.sialkot

  • Guest
Re: file transfer help !!!
« Reply #3 on: November 09, 2008, 06:10:13 AM »
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


Sidewinder



    Guru

    Thanked: 139
  • Experience: Familiar
  • OS: Windows 10
Re: file transfer help !!!
« Reply #4 on: November 09, 2008, 08:21:22 AM »
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. 8)
The true sign of intelligence is not knowledge but imagination.

-- Albert Einstein

usman.sialkot

  • Guest
Re: file transfer help !!!
« Reply #5 on: November 09, 2008, 07:59:32 PM »
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.

usman.sialkot

  • Guest
Re: file transfer help !!!
« Reply #6 on: November 10, 2008, 07:58:30 PM »
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!!!!!  :-\