Is there any way to only make it look at line 13???
Shanet
Search found 11 matches
- 06 Apr 2010 20:42
- Forum: DOS Batch Forum
- Topic: Replace text in a text file (pre-installed environment)
- Replies: 11
- Views: 11931
- 06 Apr 2010 12:18
- Forum: DOS Batch Forum
- Topic: Replace text in a text file (pre-installed environment)
- Replies: 11
- Views: 11931
Re: Replace text in a text file (pre-installed environment)
I used this and it worked ok. However, I have all this information that it destroys. Lets get to another example, as all this information is a bit private (sorry for being really rude to u guys) This file starts off being: Line1 Line2 Line3 Line4 Line5 Line6 Line7 Line8 Line9 Line10 Line11 Line12 Li...
- 06 Apr 2010 11:49
- Forum: DOS Batch Forum
- Topic: Replace text in a text file (pre-installed environment)
- Replies: 11
- Views: 11931
Re: Replace text in a text file (pre-installed environment)
All good, but I actually have it as follows:
Negative
Negative
Positive
Positive
Negative
Positive
I put the numbers there to make it easier... sorry
my bad
can any1 help plz?
Thanks,
Shanet
Negative
Negative
Positive
Positive
Negative
Positive
I put the numbers there to make it easier... sorry
my bad
can any1 help plz?
Thanks,
Shanet
- 06 Apr 2010 10:55
- Forum: DOS Batch Forum
- Topic: Replace text in a text file (pre-installed environment)
- Replies: 11
- Views: 11931
Re: Replace text in a text file (pre-installed environment)
Great! Got it and it works. Thanks !k for the script!
Shanet
Shanet
- 06 Apr 2010 06:03
- Forum: DOS Batch Forum
- Topic: Replace text in a text file (pre-installed environment)
- Replies: 11
- Views: 11931
Re: Replace text in a text file (pre-installed environment)
there's no need to convert to exe. sed.exe is just one executable, so you can put in thumb drive , or just zip together with your batch and email your friend. Again, thanks to Ghostmachine4 for your help, however, I would like to keep it to one file. I will try the answer posted by !k, if that does...
- 06 Apr 2010 03:51
- Forum: DOS Batch Forum
- Topic: Replace text in a text file (pre-installed environment)
- Replies: 11
- Views: 11931
Re: Replace text in a text file (pre-installed environment)
Thanks !k.
Im sorry for my thickness, but could you please explain this a bit more in depthly? I dont understand what you are doing?
Thanks
Shanet
Im sorry for my thickness, but could you please explain this a bit more in depthly? I dont understand what you are doing?
Thanks
Shanet
- 06 Apr 2010 02:23
- Forum: DOS Batch Forum
- Topic: Replace text in a text file (pre-installed environment)
- Replies: 11
- Views: 11931
Re: Replace text in a text file (pre-installed environment)
Many Thanks to Ghostmachine4. I am wondering - I want to convert it to an exe file with bat2exe - If I include the 'sed' file, will it work on other computers? eg If I email this file to my friend to help him with a problem, will it run or will he need the 'sed' file. if he needs the 'sed' file, wil...
- 05 Apr 2010 07:31
- Forum: DOS Batch Forum
- Topic: Convert bat to exe with icon using batch
- Replies: 4
- Views: 6806
Re: Convert bat to exe with icon using batch
I'm sorry- what do you mean by internal commands?
If you mean through command line, you can get BAT2EXE command line version...
Will keep an eye on this string.
Shanet
If you mean through command line, you can get BAT2EXE command line version...
Will keep an eye on this string.
Shanet
- 04 Apr 2010 21:47
- Forum: DOS Batch Forum
- Topic: Replace text in a text file (pre-installed environment)
- Replies: 11
- Views: 11931
Replace text in a text file (pre-installed environment)
Hey everyone. I have been doing a lot of browsing, and have not been able to find what I want to find. What I want to do is have a batch on my dekstop that will edit a file with a different directory eg. 'C:\Program Files\example\text_file.txt'. The above directory is an example of where the text fi...
- 04 Apr 2010 21:38
- Forum: DOS Batch Forum
- Topic: Starting and Stopping Services in Windows
- Replies: 6
- Views: 10452
Re: Starting and Stopping Services in Windows
I found this out last night. It took me 2 minutes to understand, so its not that hard.
'Net Start <service name>'
or
'Net Stop <service name>'
I hope you can get your head around this, if not, good luck.
Shanet
'Net Start <service name>'
or
'Net Stop <service name>'
I hope you can get your head around this, if not, good luck.
Shanet
- 04 Apr 2010 21:33
- Forum: DOS Batch Forum
- Topic: Convert bat to exe with icon using batch
- Replies: 4
- Views: 6806
Re: Convert bat to exe with icon using batch
Hi Jamesfui, In my few years of experience with batch file creation, I have been converting batches to executables, and I use a very good little program called "BAT2EXE". I find it really useful. I can add icons, Make the main executable and include other files to strap to it, and add 'add...