Jump to content

Recommended Posts

Posted (edited)

Hello,

Howto copy a file from computer to computer?

This is what I tried:

FileCopy("\\COMPUTERNAME\SHARE\test.txt", @TempDir & "test.txt")

But that doesn't work. The file is not present in the temp dir.

InetGet doesn't work either.

Does somebody know how to solve this?

Edited by PcExpert
  • Developers
Posted

Hello,

Howto copy a file from computer to computer?

This is what I tried:

But that doesn't work. The file is not present in the temp dir.

InetGet doesn't work either.

Does somebody know how to solve this?

You are missing a "\" between @Tempdir and filename :)

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

It still doesn't work. This is my code:

$1 = InputBox("Music Drive", "Wat is de naam van de artiest?")
$2 = InputBox("Music Drive", "Hoe heet het nummer?")
FileCopy("\\Server\Admin's Drive\Onderhoud\Music\database.txt", @TempDir & "\database.txt")
FileWriteLine(@TempDir & "\database.txt", $1 & " - " & $2)
FileCopy(@TempDir & "\database.txt", "\\Server\Admin's Drive\Onderhoud\Music\database.txt")
MsgBox(64, "Music Drive", "Bedankt voor je aanvraag!")

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...