wuruoyu Posted November 23, 2010 Share Posted November 23, 2010 Never argue with an idiot. They will bring you down to their level and beat you with experience. Link to comment Share on other sites More sharing options...
freMea Posted November 23, 2010 Share Posted November 23, 2010 @freMeaOdds are if the example was posted, then it at least works for him. If you're so much a noob that you are unable to provide relevant information regarding your errors, then maybe you're not ready for this UDF. Just saying...Yes, you're right: I'm so much a noob! I'll be back when I'm ready. See you. [list][*]AutoIt 3.3.8.1[*]Win XP PRO SP3[/list] Link to comment Share on other sites More sharing options...
wraithdu Posted November 23, 2010 Share Posted November 23, 2010 Never argue with an idiot. They will bring you down to their level and beat you with experience.From the horse's mouth? Link to comment Share on other sites More sharing options...
Valik Posted November 23, 2010 Share Posted November 23, 2010 Enough with the off-topic non-sense. wuruoyu, you made a dumb request, got chastised for it. Move along now and cease the stupid comments from both sides. Link to comment Share on other sites More sharing options...
MvGulik Posted November 23, 2010 Share Posted November 23, 2010 (makes seperate "Yashied" folder.) "Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions.""The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014) "Believing what you know ain't so" ... Knock Knock ... Link to comment Share on other sites More sharing options...
Emiel Wieldraaijer Posted December 29, 2010 Share Posted December 29, 2010 You're example doesn't work at home (XP PRO SP3, AutoIt v3.3.6.1) "No files were copied".The source folder contains 5 files and the target folder is empty.What did I miss?Hi freMea,Sorry for the late reply..Search for the following code $sFileCount = 0$sFolderCount = 0_CopyData(GUICtrlRead($SourceInput), GUICtrlRead($DestinationInput) & '\' & $Current, True)Switch @errorand replace it with $sFileCount = 0$sFolderCount = 0DirCreate(GUICtrlRead($DestinationInput) & '\' & $Current)_CopyData(GUICtrlRead($SourceInput), GUICtrlRead($DestinationInput) & '\' & $Current, True)Switch @errorCould you try again ?!ThanksEmiel Best regards,Emiel Wieldraaijer Link to comment Share on other sites More sharing options...
freMea Posted December 30, 2010 Share Posted December 30, 2010 Could you try again ?!Thanks for your reply.It partially works. I tried to copy:source folder=C:\Program Files\Fichiers communstarget folder=D:\Téléchargement\Téléchargement Internet\TempAll the files and subdirectories are copied but the target folder is altered to D:\Téléchargement\Téléchargement Internet\Temp\1 [list][*]AutoIt 3.3.8.1[*]Win XP PRO SP3[/list] Link to comment Share on other sites More sharing options...
darthwhatever Posted January 2, 2011 Share Posted January 2, 2011 thanks very much Yashied! i was wondering if it supports wildcards e.g. _copy_CopyFile('C:\temp*.tmp','D:\temp*.tmp') thx [font=arial, sans-serif]How is education supposed to make me feel smarter? Besides, every time I learn something new, it pushes some old stuff out of my brain. Remember when I took that home winemaking course, and I forgot how to drive?[/font][font=arial, sans-serif]<div>This is how you annoy a web developer.</span>[/font] Link to comment Share on other sites More sharing options...
Emiel Wieldraaijer Posted January 5, 2011 Share Posted January 5, 2011 Thanks for your reply.It partially works. I tried to copy:source folder=C:\Program Files\Fichiers communstarget folder=D:\Téléchargement\Téléchargement Internet\TempAll the files and subdirectories are copied but the target folder is altered to D:\Téléchargement\Téléchargement Internet\Temp\1This is correct The first time it is copied to \1The Second time it is copied to \2 Best regards,Emiel Wieldraaijer Link to comment Share on other sites More sharing options...
mobster Posted January 17, 2011 Share Posted January 17, 2011 Hi I did try to use this one but it dident work ,I have copied all the files to my script directory but still it wont work . can you please tell me what I need to do with the #Include <Copy.au3> ,to where do I need to copy the "Copy.zip" content ? Thanks Link to comment Share on other sites More sharing options...
CGRemakes Posted January 28, 2011 Share Posted January 28, 2011 (edited) I was wondering what the best way would be to have the option to exclude files/folders? I also second the question on whether this UDF supports wildcards? If not, how hard would that be to implement? Edited January 28, 2011 by CGRemakes Link to comment Share on other sites More sharing options...
KaFu Posted January 28, 2011 Share Posted January 28, 2011 Let me bump a reply by James:No, it's not reasonable for part of the UDF.The idea of a UDF is to allow developers to write their own wrappers around the functions provided. It's up to you to use Copy.au3 to make it act like you want it to.Search for a FileListToArray UDF matching your needs and combine it with this one. OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
CGRemakes Posted January 31, 2011 Share Posted January 31, 2011 Fair enough. I just didn't know if those things were built in to this UDF. I will make it work. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 31, 2011 Moderators Share Posted January 31, 2011 CGRemakes,Search for a FileListToArray UDFTry the RecFileListToArray UDF in my sig - it has both include and exclude options. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
CGRemakes Posted January 31, 2011 Share Posted January 31, 2011 CGRemakes,Try the RecFileListToArray UDF in my sig - it has both include and exclude options. M23I'll take a look at that one. There's also option that has similar features. Which is more efficient? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 31, 2011 Moderators Share Posted January 31, 2011 CGRemakes,There are lots of that type of script on the forum - I have no idea which is most "efficient". Just try some and see if they work for you. My version does have a lot of options beyond the include/exclude lists - such as sorting the results, limiting the level of recursion, the level of path information added to the file name..... M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
CGRemakes Posted January 31, 2011 Share Posted January 31, 2011 (edited) CGRemakes,There are lots of that type of script on the forum - I have no idea which is most "efficient". Just try some and see if they work for you. My version does have a lot of options beyond the include/exclude lists - such as sorting the results, limiting the level of recursion, the level of path information added to the file name..... M23That's understandable. Yeah, the large number of options is what makes it somewhat to determine which one will work best. Sorting isn't important, nor is limiting the level of recursion (at least in my case). Include/exclude is really the only additional feature I need. It would be nice to find one that has a way of excluding a specific path, not just a filename/directory (meaning I could exclude c:\temp\file.txt, and not just file.txt). I'm guessing I'll have to find one and tweak it to get it to work the way I want. I'll play with a few different options and see what works best. Edited January 31, 2011 by CGRemakes Link to comment Share on other sites More sharing options...
KaFu Posted February 1, 2011 Share Posted February 1, 2011 What Melba really meant was that you should download the function RecFileListToArray linked in his signature, that's all you every need. OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
CGRemakes Posted February 1, 2011 Share Posted February 1, 2011 (edited) What Melba really meant was that you should download the function RecFileListToArray linked in his signature, that's all you every need.I know what he meant. I looked at it, in addition to a few other options. His is an acceptable option, I just don't need some of the extra features like sorting. Whether I use his or another one, most likely I'll have to tweak it so the exclude option allows for an entire path (with wildcards), not just an individual file/folder. For example, say I want to exclude C:\temp\test.txt file, but I want to include c:\temp\temp\test.txt. I need to have greater flexibility on how to specify exactly which one I want to exclude. I have not yet found one that will allow that. They only allow me to exclude test.txt, which would exclude it from both those paths. Yes, I suppose I could include an extra check after returning all the files, but it's just another check that should probably be done as it's gathering all the file structure info into the array in the first place. Edited February 1, 2011 by CGRemakes Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 1, 2011 Moderators Share Posted February 1, 2011 (edited) CGRemakes,an acceptable optionYou do have a way with words..... Enjoy writing your own version - I know how long it took to write mine to an acceptable level. Please do feel free to use of any of the code in my UDF. M23Edit: Removed some unnecessary text. Edited February 2, 2011 by Melba23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area 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