Monica Posted August 1, 2015 Posted August 1, 2015 Hi Guys!I'm trying to copy a folder from location A to location B. The DirCopy embedded function works great, but if the folder is large, my little program freeze, so that the user doesn't understand what's going on. I've found many solutions in this forum, but not for me.So... All I want to do is delegate to someone the folder copy process... To Windows, obviously! The API is a good solution I found... _WinAPI_CopyFileEx works like a charm, but it is for files only! I tried to insert a folder (with or without final /), but fails.Is there an API functions for me? Please... help me!Reg.MonicaPSAttached code from help (_WinAPI_CopyFileEx) prova.au3
JohnOne Posted August 1, 2015 Posted August 1, 2015 (edited) Isn't there some command line magic for that kind of thing?It would probably be a bit simpler.EDIT: xcopy. Edited August 1, 2015 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Danyfirex Posted August 1, 2015 Posted August 1, 2015 ¿Why no use _WinAPI_ShellFileOperation or IFileOperation? Saludos Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut
JohnOne Posted August 1, 2015 Posted August 1, 2015 I think the OP wants async operation to prevent GUI becoming unresponsive, not sure if _WinAPI_ShellFileOperation is. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Monica Posted August 1, 2015 Author Posted August 1, 2015 Thanks guys! I'll try and report here the result.Reg.Monica
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