behdadsoft Posted January 8, 2014 Share Posted January 8, 2014 Hi. I have two files and need copy them to another dest. but I don't know how can use FileCopy () Function for copy 2 files. Thanks. Link to comment Share on other sites More sharing options...
l3ill Posted January 8, 2014 Share Posted January 8, 2014 $var1 = "file 1" $var2 = "file 2" $var1 & $var2 My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 8, 2014 Moderators Share Posted January 8, 2014 behdadsoft,If you can uniquely define the 2 files with a single wildcard then use the function with that - otherwise you will have to use 2 FileCopy lines, one for each file. l3ill,I am not at all sure how your post is supposed to help. 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...
behdadsoft Posted January 8, 2014 Author Share Posted January 8, 2014 (edited) Thanks i Fix it. I am not at all sure how your post is supposed to help. I don't understand your mean. $var1 = "file 1" $var2 = "file 2" $var1 & $var2 Mean use this ? FileCopy ( $File1 & $File2, $ProgramFiles & "jetAudio", "") but don't work. Edited January 8, 2014 by behdadsoft Link to comment Share on other sites More sharing options...
l3ill Posted January 8, 2014 Share Posted January 8, 2014 I am not at all sure how your post is supposed to help. M23, I was attempting to quickly show how to join 2 files together for use in a function... Obviously & incorrectly assuming that this was possible with FileCopy. " Copies one or more files. " ??? Which I still dont completely understand but reluctantly agree that it is not supported. Normally I test before posting but (insert lame excuse here). sry, Bill My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 8, 2014 Moderators Share Posted January 8, 2014 l3ill,No problem - I was just wondering if you knew something I did not. 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...
vkrisz81 Posted January 8, 2014 Share Posted January 8, 2014 what is you put in to array and foreach all element and copy those files? it can be used 1 or 1000000000 file.. array[0] is the element number Link to comment Share on other sites More sharing options...
l3ill Posted January 8, 2014 Share Posted January 8, 2014 l3ill, No problem - I was just wondering if you knew something I did not. M23 LOL A very serously doubt that... My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example 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