 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
ImprisonedPride
Joined: 30 Apr 2008 Posts: 28
|
Posted: Wed Jun 25, 2008 9:12 pm Post subject: FileCopyDir does nothing... over a network |
|
|
Hey, I have two computers set up in my office. One computer has downloaded files on it, but I work with the other one. The one that gets files is windows ME while the one I am using now is XP SP2. I have used the script:
| Code: | Loop, C:\Downloads\*.*,1,
{
ifNotExist, \\Marcus\Downloads\%A_LoopFileName%
{
dir = %A_LoopFileName%
done = true
Loop, C:\Downloads\%A_LoopFileName%\*.!ut,,1
{
MsgBox "%dir%" is not finished downloading.
done = false
break
}
if done = true
{
MsgBox, Moving "%A_LoopFileName%" to \\Marcus\Downloads
RunAs, admin, admin
FileCopyDir C:\Downloads\%A_LoopFileName%, \\Marcus\Downloads\
RunAs
}
}
}
|
From the ME computer and admin/admin is my username/password on the XP SP2 computer. The script will tell me that a folder is being moved to the XP computer, but the move progress dialog never appears, nor do any files appear in the C:\Downloads folder on the XP machine. Anything ideas? _________________ Call me IP. |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6772 Location: Pacific Northwest, US
|
Posted: Wed Jun 25, 2008 10:24 pm Post subject: |
|
|
| RunAs Docs wrote: |
RunAs
Specifies a set of user credentials to use for all subsequent uses of Run and RunWait. Requires Windows 2000/XP or later.
|
try running the script from the XP computer and moving files the other way.
BTW, the FileCopyDir command won't open a progress dialog. It copies in the background.
is the XP folder shared so that any user can edit the files? _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
ImprisonedPride
Joined: 30 Apr 2008 Posts: 28
|
Posted: Wed Jun 25, 2008 11:33 pm Post subject: |
|
|
Yes, the folder is shared freely to anyone on the network. I guess I didn't see the OS requirement when I read the help files...
However, I originally started coding the script from the XP computer's perspective, and wound up with the same thing. Here is that script:
| Code: | Loop, \\Downloader\Downloads\*.*,1,
{
ifNotExist, C:\Downloads\%A_LoopFileName%
{
dir = %A_LoopFileName%
done = true
Loop, \\Downloader\Downloads\%A_LoopFileName%\*.!ut,,1
{
MsgBox Torrent "%dir%" is not finished downloading.
done = false
break
}
if done = true
{
MsgBox, Moving "%A_LoopFileName%" to C:\Downloads
RunAs, guest, guest ; My problme is here
FileCopyDir \\Downloader\Downloads\%A_LoopFileName%, C:\Downloads\
RunAs
}
}
}
|
My problem would have to be the RunAs... I'm not familiar with windows ME anymore, but I have 2 accounts on the pc, Guest///guest and admin///admin... I also have to set a password on the downloads folder (on the ME pc) to enable "Full" access to the folder (the ability to change/move files). The password for this was left blank. I have tried Guest///guest, admin///admin, Guest///*blank*, and admin///*blank* and all have resulted in the same thing (when ran from the XP pc): It says that it's moving them, but no files ever appear.
Also, can you FORCE the move dialog open when using FileCopyDir? _________________ Call me IP. |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6772 Location: Pacific Northwest, US
|
Posted: Thu Jun 26, 2008 5:13 pm Post subject: |
|
|
i don't think you can force the copy window to show up.
can you try mapping the network share to a drive letter? then you don't have the \\computer\share\files syntax. _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|