Jump to content

Script executes only once


Recommended Posts

  • Developers

@Alok_Arora,

Please :

  • Only post one topic on a subject.
  • Be much clearer in what it is you really want.
  • Do not resurrect old threads unless they are really appropriate

So ...  what about you post what you really want to do and what you have tried ( so your script that doesn't work) .

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

15 minutes ago, water said:

Welcome to AutoIt and the forum!

You could simply store the date of the last successful run in a file (that only holds this date).
Read this file to into a variable and compare to the current date ... voilá

Thank you friend for this logic but I Need the Code for this.

Also, I have mentioned in my query that script will search for that particular task entry in log file. If entry is available than script should pop up a message task already ran for the day and script close. 

If entry is not matched than script will continue as task is running for the first time in day. 

 

Link to comment
Share on other sites

3 minutes ago, Jos said:

@Alok_Arora,

Please :

  • Only post one topic on a subject.
  • Be much clearer in what it is you really want.
  • Do not resurrect old threads unless they are really appropriate

So ...  what about you post what you really want to do and what you have tried ( so your script that doesn't work) .

Jos

OK Sir, 

I run multiple scripts (each script takes around 2 mins only) in a day and it's log stored in a txt file. I need a code which check this file and if entry is found for the day of a task script won't run the task to avoid running it twice in a day. 

Link to comment
Share on other sites

  • Developers

I have seen that part already... so what have you tried?

Show your script!

Just now, Alok_Arora said:

Yes Sir. Can you help me please in sharing the code. 

.. and stop the begging for code! 

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

20 minutes ago, Jos said:

I have seen that part already... so what have you tried?

Show your script!

.. and stop the begging for code! 

Hello Sir, 

I just shared the snap of a existing code and another snap in which I was trying to verify by storing logs in excel file. However, I am unable to do it so just wanted to make it simple by simply check the existing log sheet and prevent running the task twice for that day 

 

 

Edited by Jos
Link to comment
Share on other sites

One more snap which shows how logs are storing in notepad. 

Sorry Sir for my behavior. I know this is not appropriate but this code is very important for my job and ultimately bread butter. 

I hope you ignore my behaviour and will also help me. 

Thank you. 

 

Edited by Jos
Link to comment
Share on other sites

  • Developers

Please stop posting images of code and simply post the actual source in a CodeBlock (<>) !

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers

You must be able to copy the Autoit3 script source from you PC into this forum ....  right?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers

Then you will have to deal with that somehow when you need support from us .... else please don't bother as this has till now be a total waste of time for me and others.. ;) 
 

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

1 minute ago, Jos said:

Then you will have to deal with that somehow when you need support from us .... else please don't bother as this has till now be a total waste of time for me and others.. ;) 
 

I am in deep trouble and need help badly. However, I also believe that if anyone is capable and wants to help someone in real it won't require such formalities. 

It's very simple to say that don't wanna help. That is also fine atleast won't remain in any hope. 

I am sure God will find some way for me. 

Sorry for bothering you and killing your time and hope if you also find yourself in tough situation than atleast you will get help. 

If not than atleast recall this incidence. 

Thanks. 

Link to comment
Share on other sites

  • Developers
4 minutes ago, Alok_Arora said:

I am in deep trouble and need help badly. However, I also believe that if anyone is capable and wants to help someone in real it won't require such formalities. 

Go to your IT department and get support when you are that deep in trouble, that is what hey are there for!

Come back here when you can provide the basics and work with us ... till then simply stop begging for support.

This thread is now closed and don't open a new discussion till that time.

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Jos locked this topic
Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...