[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.6

batch to make another =  batch

Asked by zawa in MS DOS

Hi
Here goes my problem. Im using a code that i got from another post to delete the last line in a text file if it founds a string.(lets call this code batch2)
set zfn=myfile.txt
 set zsp=nº50
 set ztf=z
 :temploop
 set ztf=%ztf%b
 if exist %temp%\%ztf%* goto temploop
 set ztf=%temp%\%ztf%
 for /f "delims=[]" %%i in ('find /n "%zsp%" ^<%zfn%') do set zln=%%i
 echo %zln%d>%ztf%a
 echo e>>%ztf%a  
 edlin %zfn% <%ztf%a >nul
 if exist %ztf%* del %ztf%*
 for %%i in (ztf zln zfn zsp) do set %%i=
 goto :eof

But i have utilitie batch (lets call batch1) file so what i want is that my batch file (batch1) make batch2 and than executed. I tried to do like Ex:echo set zsp=nº50 >>batch2 and that worked but with 2 problems:
In this line "if exist %temp%\%ztf%* goto temploop " in batch1 , when it makes batch2 it will put there my temp folder path becouse of the system variable and i want "if exist %temp%\%ztf%* goto temploop ".(exactly the same)
The other problem are 2 lines: "echo %zln%d>%ztf%a " and "echo e>>%ztf%a " becouse of the doble echo i think .
What i want is that batch1 to make batch2 exactly the same.
Sorry for my English and i hope you guys understand what i need.

Thanx
[+][-]10/06/03 10:53 PM, ID: 9503474Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: MS DOS
Sign Up Now!
Solution Provided By: K_2K
Participating Experts: 2
Solution Grade: A
 
[+][-]10/06/03 11:22 AM, ID: 9499956Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/06/03 11:25 AM, ID: 9499978Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/06/03 12:04 PM, ID: 9500239Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/06/03 06:14 PM, ID: 9502503Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/14/03 06:10 PM, ID: 9551428Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/15/03 05:01 AM, ID: 9553982Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/15/03 07:32 AM, ID: 9555061Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12/01/03 04:49 PM, ID: 9854521Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]12/07/03 06:25 AM, ID: 9891915Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091118-EE-VQP-93