PcExpert Posted January 13, 2007 Share Posted January 13, 2007 (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 January 13, 2007 by PcExpert Link to comment Share on other sites More sharing options...
Helge Posted January 13, 2007 Share Posted January 13, 2007 Missing backslash. A good idea is to use MsgBox'es to check stuff like this... FileCopy("\\COMPUTERNAME\SHARE\test.txt", @TempDir & "\test.txt") Link to comment Share on other sites More sharing options...
Developers Jos Posted January 13, 2007 Developers Share Posted January 13, 2007 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. Link to comment Share on other sites More sharing options...
PcExpert Posted January 14, 2007 Author Share Posted January 14, 2007 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!") Link to comment Share on other sites More sharing options...
MHz Posted January 14, 2007 Share Posted January 14, 2007 Do you expect it to update the original file when you do not use the overwrite flag with FileCopy? Link to comment Share on other sites More sharing options...
PcExpert Posted January 14, 2007 Author Share Posted January 14, 2007 (edited) actuallt yes. Ian't that possible then? PROBLEM FIXED! Edited January 14, 2007 by PcExpert Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now