You are here

Running Scripts with Windows Path

1 post / 0 new
paulojfonseca
Offline
Last seen: 8 years 7 months ago
Joined: 2015-08-04 05:44
Running Scripts with Windows Path

Hi all,

I am trying to create a very simple script to copy 1 file between 2 locations.
I am using Windows 7 32 bits.

I am using the following code:
copy("E:\\abc.txt", "E:\\a\\")
or
copy([[E:\abc.txt]], [[E:\a\]])

both e:\abc.txt file and e:\a folder exit but i keep receiving this message:

10:49:33 Failed to copy E:\abc.txt
10:49:33 Toucan 3.1
Date: 2015-08-04
Computer Name: ESP-AED-017
Operating System: Windows 7 (build 7601, Service Pack 1)

Am I doing something wrong? do i need to initialize anything?
Thanks for the help!
Paulo