Jump to content

Network copy is not working


Go to solution Solved by caramen,

Recommended Posts

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 ~~~

Link to comment
Share on other sites

  • Solution

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

My video tutorials : ( In construction )  || My Discord : https://discord.gg/S9AnwHw

How to Ask Help ||  UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote

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

 

Link to comment
Share on other sites

:guitar:

My video tutorials : ( In construction )  || My Discord : https://discord.gg/S9AnwHw

How to Ask Help ||  UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote

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

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...