Text File Editing Help Required.

Reply

Join Date: Aug 2005
Posts: 5,266
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: Text File Editing Help Required.

 
0
  #11
Jan 27th, 2007
Yeah I just realised.

Why would you need to change the syntax for the bat file tho?

Isn't a batch (bat) file just a mirror of syntax you would use at the command prompt?
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 148
Reputation: ghostdog74 is on a distinguished road 
Solved Threads: 40
ghostdog74 ghostdog74 is offline Offline
Junior Poster

Re: Text File Editing Help Required.

 
1
  #12
Jan 27th, 2007
Originally Posted by iamthwee View Post
Yeah I just realised.

Why would you need to change the syntax for the bat file tho?

Isn't a batch (bat) file just a mirror of syntax you would use at the command prompt?
I did not change the syntax. Its how variables are defined in Windows batch shell.
If you open a command prompt and work your batch commands from there using for loops, you have to use %i (or some other alphabet) as the variable. If in a batch file , use %%i.. This is how windows batch work. You can also try it out. It will give error saying "syntax of the command is incorrect" when you use %i in a batch file.
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 28
Reputation: coolvision is an unknown quantity at this point 
Solved Threads: 0
coolvision coolvision is offline Offline
Light Poster

Re: Text File Editing Help Required.

 
0
  #13
Jan 28th, 2007
Dear iamthwee your really done a great job, and I am really thankful to you for that task. Its working as I want to do.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,266
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: Text File Editing Help Required.

 
0
  #14
Jan 28th, 2007
No probs
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 28
Reputation: coolvision is an unknown quantity at this point 
Solved Threads: 0
coolvision coolvision is offline Offline
Light Poster

Re: Text File Editing Help Required.

 
0
  #15
Jan 28th, 2007
Dear iamthwee however patch is working nice but its still taking a lot of time to editing text files, bcoz text files in diff folders and in every folder there is hundereds of files, and for editing I 1st copy file from one folder to another folder and then rename it to test and then apply patch and then cut it to another folder and again rename it and I repeat it for every signle file editing.

So, now can you plz add some more functionality by adding the patch edit all the files in signle folder and create a signle file or any named files in some other or same folder. I think this will save a lot of time instead of editing one by one file.

Hope you can do that. and I am waiting for your reply.

Thanks & Regards,
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,266
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: Text File Editing Help Required.

 
0
  #16
Jan 28th, 2007
Yes I can do this so that it applies the patch to all your files (of any particular name) within a given folder.

Please wait 20 mins, because I have to program it...
Last edited by iamthwee; Jan 28th, 2007 at 12:40 pm.
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,266
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: Text File Editing Help Required.

 
0
  #17
Jan 28th, 2007
Here we go...

Again, once you have downloaded it, right-click the folder and choose to extract all files.

When you run the patch it creates a new folder called:


In that folder will be your one text file.
Attached Files
File Type: zip thweetiepie.zip (139.5 KB, 3 views)
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 28
Reputation: coolvision is an unknown quantity at this point 
Solved Threads: 0
coolvision coolvision is offline Offline
Light Poster

Re: Text File Editing Help Required.

 
0
  #18
Jan 28th, 2007
Dear Iamthwee Thanks you very very much again.
And one more thing, is it create a duplicate free list or there may duplicate words existing ?. if yes, is it possible its create a duplicate free result file. ?

Thanks & Regards,
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,266
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: Text File Editing Help Required.

 
0
  #19
Jan 28th, 2007
It doesn't eliminate duplicates in the text file.

But there are a variety of ways to do that. Implementing a hash table/map would be one such way (reasonably efficient).

Do you want me to do that for you.
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 28
Reputation: coolvision is an unknown quantity at this point 
Solved Threads: 0
coolvision coolvision is offline Offline
Light Poster

Re: Text File Editing Help Required.

 
0
  #20
Jan 28th, 2007
Ok Dear, thanks for your co-operation.

May God give a success to you in this and hereafter world.

Thanks & Regards,
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Windows NT / 2000 / XP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC