Jump to content
31290

Network copy is not working

Recommended Posts

31290

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
caramen

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


IUIAutomation From Junkew || WebDriver From Danp2 || And Water's UDF in the Quote|| >>HIt The Thanks Button.<<

Spoiler

 Water's UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
31290

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
caramen

:guitar:


IUIAutomation From Junkew || WebDriver From Danp2 || And Water's UDF in the Quote|| >>HIt The Thanks Button.<<

Spoiler

 Water's UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

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

×