#1
|
|||
|
|||
software needed : Reward $50
To get the reward you don't necessarily need to write the program, a link with proper instructions that does the trick is also fine.
I'd like to see a program that merges the txt files in map A with the txt files with the same name in map B automatically, so it can do thousands without clicking. So for example file A contains "monkey" and file B contains "donkey" I want a file created with contents "monkey donkey". This must also be possible for files with different extensions than .txt. I know it's very simple for good programmers, but it would help me alot with poker. Thanks! If it works the reward wil transfered by FTP, stars or neteller edit: also it must not copy the same lines twice in the new file |
#2
|
|||
|
|||
Re: software needed : Reward $50
Hey WSOP
Here is a very simple Ahk script that does the trick: <font class="small">Code:</font><hr /><pre>#NoEnv #SingleInstance, Force DirA := "C:\Some folder 1" DirB := "C:\Some folder 2" Ext := "*.txt" OutDir := "C:\Output folder" loop, %DirA%\%Ext% { if ( FileExist(DirB . "\" . A_LoopFileName) ) { FileRead, text1, %DirA%\%A_LoopFileName% FileRead, text2, %DirB%\%A_LoopFileName% FileAppend, %text1% %text2%, %OutDir%\%A_LoopFileName% } } </pre><hr /> You can download AutohotKey from here: http://www.autohotkey.com/download/A...keyInstall.exe [ QUOTE ] also it must not copy the same lines twice in the new file [/ QUOTE ] Do you mean that if File A and File B contains the same text the resulting file will only contain this text once? /butcha |
#3
|
|||
|
|||
Re: software needed : Reward $50
Nice work this is it. Only if text A has the same line as text B it copies the line twice to the output folder. I only need it once. Also it has to copy the header and the closing lines only once. This is what I want: File A to merge: <player-note screenName="lemonstre13"> <strength>4</strength><color>4</color><comment> monkey dog </comment> </player-note> File B to merge: <player-note screenName="lemonstre13"> <strength>4</strength><color>4</color><comment> monkey donkey sheep </comment> </player-note> Outcome file: <player-note screenName="lemonstre13"> <strength>4</strength><color>4</color><comment> monkey donkey dog sheep </comment> </player-note> If you can add this just PM me how you want to receive the payment. |
#4
|
|||
|
|||
Re: software needed : Reward $50
As a programmer (i'm at work and no time to do this). Your original post really does not in anyway detail what you wanted. Your last post does. Are all your files going to have player notes in this structure? This might be more than a $50 project. mabye more $100-$150. As a note to help people willing to do this for you, describe everything you can about the project. You really are not looking to merge files per say, really just merge notes (atleast from the example), which involves reading and comparing tons of lines. Good luck.
|
#5
|
|||
|
|||
Re: software needed : Reward $50
Resboared you are correct, I should have said this earlier, but only now I see that it doesn't work I have no other choice then to ask for the adjustment. To answer your question, yes all notes have the same structure.
|
#6
|
|||
|
|||
Re: software needed : Reward $50
[ QUOTE ]
Resboared you are correct, I should have said this earlier, but only now I see that it doesn't work I have no other choice then to ask for the adjustment. To answer your question, yes all notes have the same structure. [/ QUOTE ] Did you miss my PM? I have sent you a new version. /butcha |
#7
|
|||
|
|||
Re: software needed : Reward $50
wow excellent work man! thanks your the best butcha!
|
|
|