Phoenix
Joined: 23 Sep 2005 Posts: 39
|
Posted: Mon Feb 18, 2008 1:52 pm Post subject: Filecopy from UNC paths |
|
|
Is it possible to use the filecopy command for sources on UNC paths.
I tried the following:
| Code: |
Source = \\computer\test
Dest = %A_ProgramFiles%\test
FileCopyDir, Source, Dest, 1
|
But it doesn't seem to work. Am I doing something wrong or is this not supported? |
|
Rhys
Joined: 17 Apr 2007 Posts: 710 Location: Florida
|
Posted: Mon Feb 18, 2008 2:28 pm Post subject: |
|
|
| Code: | Source = \\computer\Path
Dest = %A_Desktop%
FileCopyDir, %Source%, %Dest%, 1 |
Works - if you're using a variable for FileCopy(Dir), you need to bracket it in %.
You can also do it this way (untested): | Code: | | FileCopyDir, \\computer\Path, %A_Desktop%, 1 |
_________________ [Join IRC!]
 |
|