face Posted January 28, 2014 Share Posted January 28, 2014 eg: file1.txt 44 173 result: spaced with a tab file1.txt 44 173 Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 28, 2014 Moderators Share Posted January 28, 2014 face,And what have you tried so far that has not worked? I would suggest FileRead, StringReplace & FileWrite might be good place to start if you have not yet tried anything. 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...
face Posted January 28, 2014 Author Share Posted January 28, 2014 (edited) really need an example plz plz theres like 4000 files Edited January 28, 2014 by face Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted January 28, 2014 Moderators Share Posted January 28, 2014 Will do you one better and give you three examples: https://www.autoitscript.com/autoit3/docs/functions/FileRead.htm https://www.autoitscript.com/autoit3/docs/functions/StringReplace.htm https://www.autoitscript.com/autoit3/docs/functions/FileWrite.htm "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
face Posted January 28, 2014 Author Share Posted January 28, 2014 (edited) how to edit 4000 files the same way? Edited January 28, 2014 by face Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 28, 2014 Moderators Share Posted January 28, 2014 face,Use a loop - list the files (FileListToArray might come in handy here) and then use a For...Next loop to deal with each one in turn. Now how about showing a bit of initiative and producing some code by yourself. You know where we are if you have problems, but it is time you wrote at least a starter script. 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...
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