Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: number of times started  (Read 18553 times)

0 Members and 1 Guest are viewing this topic.

Jaka

  • Guest
Re: number of times started
« Reply #30 on: November 06, 2014, 12:45:05 AM »
Hmmm,
Not sure about your logic with deleting one file or both.  What happens when you delete log1.txt and log2.txt has a value of 3.  The way I would understand your logic is that file1.exe would run 5 times and file2.exe will never run.  Is that correct?

NO that is not planned to delete it before cycle is over but when cycle is stopped. That means when all finished like you write in your diagram of scrypt.
Do you think I should have another script to delete txt files and to prevent deletion before cycle is not finished?
So it can start all over, because this script is somekind of watchdog.
« Last Edit: November 06, 2014, 01:31:36 AM by Jaka »

Jaka

  • Guest
Re: number of times started
« Reply #31 on: November 07, 2014, 03:22:18 AM »
Can I hope for this script?  :-\

foxidrive



    Specialist
  • Thanked: 268
  • Experience: Experienced
  • OS: Windows 8
Re: number of times started
« Reply #32 on: November 07, 2014, 03:52:46 AM »
Can I hope for this script?  :-\

Yes, you can hope.

It should be said that when you employ and pay a programmer, then you would need to tell them all the actual details about the task.
In this forum you ask for free help, and somehow you think people can do an effective job without actual information about the task.

Someone could write a script based upon your poor information, but it's happened so many times in the past that the
script doesn't work, and has to be re-written again, because the task wasn't described properly and the script fails.



Jaka

  • Guest
Re: number of times started
« Reply #33 on: November 07, 2014, 04:00:18 AM »
you can see on all of my posts I tried really hard to explain what I need.
And you can't expect your way of  thinking as a programmer is the same as mine, when I don't know nothing about propgramming.
You programmers think differend than other people, that's why is hard to explain what people need.

foxidrive



    Specialist
  • Thanked: 268
  • Experience: Experienced
  • OS: Windows 8
Re: number of times started
« Reply #34 on: November 07, 2014, 04:39:57 AM »
you can see on all of my posts I tried really hard to explain what I need.
And you can't expect your way of  thinking as a programmer is the same as mine, when I don't know nothing about propgramming.
You programmers think differend than other people, that's why is hard to explain what people need.

I'm not sure you understand what I wrote. 


Jaka

  • Guest
Re: number of times started
« Reply #35 on: November 07, 2014, 05:13:36 AM »
yes, I should pay someone for the script. I understand that. If I have enough money and if that was for some company project  than I payed it.
But it is for my project, that's why I am here asking for help.
And if that is too much or you or anyone will not help me, than you should say so and I won't waste your time any more and my time banging my head how to explaine what I need.

Thank you anyway I will go somewhere else, where people will help me.

foxidrive



    Specialist
  • Thanked: 268
  • Experience: Experienced
  • OS: Windows 8
Re: number of times started
« Reply #36 on: November 07, 2014, 07:01:46 AM »
yes, I should pay someone for the script. I understand that.

You don't understand though.  When you pay someone, for them to do a good job you have to tell them exactly what the task is.
That means the programs being used, and what the aim of the task is, and the directories being used and the operating system etc.
You let them figure out the best way to solve your task.

Here you want the same task solved, and the people reading can give you the best solution - if you only tell them the same things that you would have to tell a paid person.

Without all that information you are likely to get a script that doesn't work correctly all the time, or a script that is more complicated than it needs to be.

On top of that, the people who read your posts and help you (for free) get no enjoyment from the task, and will simply not even reply because they have wasted their time in the same situation many times before.

I've tried to explain to you that your description of the task is so limited that it's impossible to even know what you are doing, so your readers can't use their experience to help you.


Jaka

  • Guest
Re: number of times started
« Reply #37 on: November 07, 2014, 07:18:22 AM »
OK thank you, I understand that I will try to be more specific next time at the start.

foxidrive



    Specialist
  • Thanked: 268
  • Experience: Experienced
  • OS: Windows 8
Re: number of times started
« Reply #38 on: November 07, 2014, 07:52:20 AM »
OK thank you, I understand that I will try to be more specific next time at the start.

You can start again now and provide all the information about the task, to help your readers to help you.


Jaka

  • Guest
Re: number of times started
« Reply #39 on: November 12, 2014, 12:16:51 PM »
I have been verry bussy and rethink all over again and here it is how script should work, step by step.

Your scheduled task will fire.
The batch file will check if stop.txt exist
If stop.txt exist, nothing happends
if stop.txt not exist it will proceed
The batch file will run file1.exe and write 1 to log1.txt
Your scheduled task will fire.
The batch file will run file1.exe and write 2 to log1.txt
Your scheduled task will fire.
The batch file will run file1.exe and write 3 to log1.txt
Your scheduled task will fire.
The batch file will run file1.exe and write 4 to log1.txt
Your scheduled task will fire.
The batch file will run file1.exe and write 5 to log1.txt
Your scheduled task will fire.
The batch file will run file2.exe and write 1 to log2.txt
Your scheduled task will fire.
The batch file will run file1.exe and write 1 to log1.txt
Your scheduled task will fire.
The batch file will run file1.exe and write 2 to log1.txt
Your scheduled task will fire.
The batch file will run file1.exe and write 3 to log1.txt
Your scheduled task will fire.
The batch file will run file1.exe and write 4 to log1.txt
Your scheduled task will fire.
The batch file will run file1.exe and write 5 to log1.txt
Your scheduled task will fire.
The batch file will run file2.exe and write 2 to log2.txt
Your scheduled task will fire.
The batch file will run file1.exe and write 1 to log1.txt
Your scheduled task will fire.
The batch file will run file1.exe and write 2 to log1.txt
Your scheduled task will fire.
The batch file will run file1.exe and write 3 to log1.txt
Your scheduled task will fire.
The batch file will run file1.exe and write 4 to log1.txt
Your scheduled task will fire.
The batch file will run file1.exe and write 5 to log1.txt
Your scheduled task will fire.
The batch file will run file2.exe and write 3 to log2.txt
The batch file will create stop.txt

Jaka

  • Guest
Re: number of times started
« Reply #40 on: November 18, 2014, 01:14:57 PM »
nobody writes nothing is that mean i still didn't write good what I need?  ???

Lemonilla



    Apprentice

  • "Too sweet"
  • Thanked: 70
  • Computer: Specs
  • Experience: Experienced
  • OS: Windows 7
Re: number of times started
« Reply #41 on: November 18, 2014, 03:02:38 PM »
Look at these commands and write it yourself.

set /p
set /a
if
start
Quote from: patio
God Bless the DOS Helpers...
Quote
If it compiles, send the files.

Jaka

  • Guest
Re: number of times started
« Reply #42 on: November 19, 2014, 07:24:36 AM »
Thank you, but I don't know how.

Squashman



    Specialist
  • Thanked: 134
  • Experience: Experienced
  • OS: Other
Re: number of times started
« Reply #43 on: November 19, 2014, 07:54:26 AM »
End of year for me.  My time is precious.  If it isn't a batch file I can write in a few lines of code off the top of my head in 2 minutes I can't afford the time to write it.
Sorry.

Jaka

  • Guest
Re: number of times started
« Reply #44 on: November 19, 2014, 09:50:04 AM »
End of year for me.  My time is precious.  If it isn't a batch file I can write in a few lines of code off the top of my head in 2 minutes I can't afford the time to write it.
Sorry.
It is a batch file and yes I understand, thank you anyway. I will try to find help somewhere else.