AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Filecopy from UNC paths

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Phoenix



Joined: 23 Sep 2005
Posts: 39

PostPosted: Mon Feb 18, 2008 1:52 pm    Post subject: Filecopy from UNC paths Reply with quote

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?
Back to top
View user's profile Send private message
Rhys



Joined: 17 Apr 2007
Posts: 710
Location: Florida

PostPosted: Mon Feb 18, 2008 2:28 pm    Post subject: Reply with quote

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!]
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group