31290 Posted April 7, 2015 Share Posted April 7, 2015 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 More sharing options...
Solution caramen Posted April 7, 2015 Solution Share Posted April 7, 2015 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 - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki Link to comment Share on other sites More sharing options...
31290 Posted April 7, 2015 Author Share Posted April 7, 2015 Thanks a lot Caramen, This is now working as expected ~~~ Doom Shall Never Die, Only The Players ~~~ Link to comment Share on other sites More sharing options...
caramen Posted April 7, 2015 Share Posted April 7, 2015 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 - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now