mohan93 Posted November 17, 2013 Share Posted November 17, 2013 This is a VBScript am trying to use it in AutoIT, This will search for a file starting with "GLW" in %temp% and copy that to different location. '********************Rename and move the wise script file ******************** Set folder = objfso.GetFolder(folderName) ''Loop over all files in the folder until the searchFileName is found For each file In folder.Files ''See if the file starts with the name we search 'WScript.Echo (file.Name) If instr(file.name, searchFileName) = 1 Then Wise_path1=file.Path objfso.copyfile FILE.PATH, outFolder & "" , TRUE Exit For End If Next I get error in line Wise_path1=file.Path ..... Error: Missing Charcter seperator after Key Word is there any other specific autoit command to perform the above task. Please help. Link to comment Share on other sites More sharing options...
Solution michaelslamet Posted November 17, 2013 Solution Share Posted November 17, 2013 Hi Mohan, First, your post is on wrong forum, it should be on "general support", so moderator will move it to the right forum later. Yes, what you're going to do is doable with AutoIT, only need one line: FileCopy(@TempDir & "\GLW*.*", "c:\MyTargetFolder\") Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted November 17, 2013 Moderators Share Posted November 17, 2013 mohan93,Thread moved - but please take more care in future. 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...
mohan93 Posted November 20, 2013 Author Share Posted November 20, 2013 Sure, thanks a lot 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