943,811 Members | Top Members by Rank

Ad:
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Jan 27th, 2007
0

Re: Text File Editing Help Required.

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?
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Jan 27th, 2007
1

Re: Text File Editing Help Required.

Click to Expand / Collapse  Quote originally posted by iamthwee ...
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.
Reputation Points: 75
Solved Threads: 44
Junior Poster
ghostdog74 is offline Offline
156 posts
since Apr 2006
Jan 28th, 2007
0

Re: Text File Editing Help Required.

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.
Reputation Points: 10
Solved Threads: 0
Light Poster
coolvision is offline Offline
29 posts
since Jan 2007
Jan 28th, 2007
0

Re: Text File Editing Help Required.

No probs
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Jan 28th, 2007
0

Re: Text File Editing Help Required.

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,
Reputation Points: 10
Solved Threads: 0
Light Poster
coolvision is offline Offline
29 posts
since Jan 2007
Jan 28th, 2007
0

Re: Text File Editing Help Required.

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.
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Jan 28th, 2007
0

Re: Text File Editing Help Required.

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:

NewFiles

In that folder will be your one text file.
Attached Files
File Type: zip thweetiepie.zip (139.5 KB, 19 views)
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Jan 28th, 2007
0

Re: Text File Editing Help Required.

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,
Reputation Points: 10
Solved Threads: 0
Light Poster
coolvision is offline Offline
29 posts
since Jan 2007
Jan 28th, 2007
0

Re: Text File Editing Help Required.

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.
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Jan 28th, 2007
0

Re: Text File Editing Help Required.

Ok Dear, thanks for your co-operation.

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

Thanks & Regards,
Reputation Points: 10
Solved Threads: 0
Light Poster
coolvision is offline Offline
29 posts
since Jan 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Windows NT / 2000 / XP Forum Timeline: boot problem
Next Thread in Windows NT / 2000 / XP Forum Timeline: Temporary Internet Files





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC