31290

Network copy is not working

4 posts in this topic

Hi everyone, hope you're fine :)

I've almost finished my 700+ lines script but I'm facing a major issue here...

Sometime in the script, I have to copy a file from a network location to my local HDD, with absolute need of a progress bar.

Here's what I'm using:

;LanDesk Agent Copy Function
Func LanDeskAgentCopy ($fromfile, $tofile)
    Local $FOF_RESPOND_YES = 16
    Local $FOF_SIMPLEPROGRESS = 256
    $winShell = ObjCreate ("shell.application")
    $winShell.namespace ($tofile).CopyHere ($fromFile, $FOF_RESPOND_YES)
EndFunc
Global $LDASource = "\\sealedair\ldrep\ldswd\LANDesk Agents\LD9.5_Prod\SAC Default Windows Workstation Agent_with_status.exe"
Global $LDADest = "C:\LanDeskAgent\SAC Default Windows Workstation Agent_with_status.exe"

Later on in the script, I do this:

LanDeskAgentCopy($LDASource, $LDADest)

But this is not working over the network. When using big local files, it IS working and the progress bar displays....

An other important you might know is that I can't map any network drive on the target machine (or even mine).

Am I missing or doing something wrong?

Thanks a lot for the future help you could provide :)

See you.

-31290-


~~~ Doom Shall Never Die, Only The Players ~~~

Share this post


Link to post
Share on other sites



Global $LDADest = "C:\LanDeskAgent\"
try this

Share this post


Link to post
Share on other sites

Thanks a lot Caramen, 

This is now working as expected  :bike:  :thumbsup:


~~~ Doom Shall Never Die, Only The Players ~~~

Share this post


Link to post
Share on other sites

:guitar:

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now