viewpoint-particle

Author Topic: Shutdown process interrupt to ask if I want close the script  (Read 5392 times)

archimede

  • Newbie
  • *
  • Posts: 22
Shutdown process interrupt to ask if I want close the script
« on: September 27, 2013, 06:47:46 am »
I have Windows 7 and an old version of Winbatch: WinBatch 2008C
I compiled a script that I launched, but, when it is running and I close the system, the script stop the shutdown process asking me if I want to close the script; I I answer yes the shutdown process continue.
I would the shutdown process non interrupt for ask me that: is it possible? How?

archimede

  • Newbie
  • *
  • Posts: 22
Re: Shutdown process interrupt to ask if I want close the script
« Reply #1 on: September 27, 2013, 06:50:25 am »
I was banned from this forum for spamming, but I no spammed...
I'm sorry if I made anything you not like, please tell me what I made you not like to no redo the same thing (I'm sure I no spammed).
I'm sorry, I thin it was a mistake.

Deana

  • Wilson WindowWare Tech Support
  • Pundit
  • *****
  • Posts: 1183
  • WinBatch® can do it.
    • WinBatch Tech Support Database
Re: Shutdown process interrupt to ask if I want close the script
« Reply #2 on: September 27, 2013, 08:16:10 am »
I have Windows 7 and an old version of Winbatch: WinBatch 2008C
I compiled a script that I launched, but, when it is running and I close the system, the script stop the shutdown process asking me if I want to close the script; I I answer yes the shutdown process continue.
I would the shutdown process non interrupt for ask me that: is it possible? How?

Unfortunately WinBatch 2008C is not supported on Windows 7. The minimum supported version of WinBatch on Windows 7 is WinBatch 2009C. I recommend updating you WinBatch to the current version if you plan on running on Windows 7. For more information about software renewals, please see: http://renewals.winbatch.com.

Now on to your question. You can simply add IntControl(12,5,0,0,0) to tell the script to Exit quietly.
Deana F.
Technical Support
Wilson WindowWare Inc.

archimede

  • Newbie
  • *
  • Posts: 22
Re: Shutdown process interrupt to ask if I want close the script
« Reply #3 on: September 27, 2013, 08:20:22 am »
The manual about Intcontrol ( 12, p1, p2, 0, 0 ) tells there are only these value por p1:
0 show popup window to ask to close or not the script ( I think the default value )
1 Windows can close the application without problem
2 Windows can not close application
3 reserved
no other

Must I use 1 or 5 for p1?

Deana

  • Wilson WindowWare Tech Support
  • Pundit
  • *****
  • Posts: 1183
  • WinBatch® can do it.
    • WinBatch Tech Support Database
Re: Shutdown process interrupt to ask if I want close the script
« Reply #4 on: September 27, 2013, 08:34:43 am »
See my response in the other thread: http://forum.winbatch.com/index.php?topic=310.msg1201#msg1201. It should help explain how the IntControl 12 function works.
Deana F.
Technical Support
Wilson WindowWare Inc.

Deana

  • Wilson WindowWare Tech Support
  • Pundit
  • *****
  • Posts: 1183
  • WinBatch® can do it.
    • WinBatch Tech Support Database
Re: Shutdown process interrupt to ask if I want close the script
« Reply #5 on: September 27, 2013, 08:41:54 am »
I was banned from this forum for spamming, but I no spammed...
I'm sorry if I made anything you not like, please tell me what I made you not like to no redo the same thing (I'm sure I no spammed).
I'm sorry, I thin it was a mistake.

We are constantly fending off bots trying create forum accounts. We apologize, it was a mistake on our part.
Deana F.
Technical Support
Wilson WindowWare Inc.

DAG_P6

  • Full Member
  • ***
  • Posts: 184
  • WinBatch rocks, and so does Wilson WindowWare!
    • WizardWrx
Re: Shutdown process interrupt to ask if I want close the script
« Reply #6 on: September 28, 2013, 02:03:26 pm »
Although not officially sanctioned, I have a number of legacy scripts that were created by compilers as old as 2005G that behave admirably on Windows 7.
David A. Gray
You are more important than any technology.

Deana

  • Wilson WindowWare Tech Support
  • Pundit
  • *****
  • Posts: 1183
  • WinBatch® can do it.
    • WinBatch Tech Support Database
Re: Shutdown process interrupt to ask if I want close the script
« Reply #7 on: September 28, 2013, 06:09:38 pm »
Although not officially sanctioned, I have a number of legacy scripts that were created by compilers as old as 2005G that behave admirably on Windows 7.

You must realize that the 2005 version was developed and released, long before Windows 7 was even available. We have made a lot of changes to WinBatch to make it compatible with Windows Vista and newer. Its good to hear you have been running compiled scripts successfully, however it is not recommended nor supported.
Deana F.
Technical Support
Wilson WindowWare Inc.

DAG_P6

  • Full Member
  • ***
  • Posts: 184
  • WinBatch rocks, and so does Wilson WindowWare!
    • WizardWrx
Re: Shutdown process interrupt to ask if I want close the script
« Reply #8 on: September 30, 2013, 06:00:10 pm »
Although not officially sanctioned, I have a number of legacy scripts that were created by compilers as old as 2005G that behave admirably on Windows 7.

You must realize that the 2005 version was developed and released, long before Windows 7 was even available. We have made a lot of changes to WinBatch to make it compatible with Windows Vista and newer. Its good to hear you have been running compiled scripts successfully, however it is not recommended nor supported.

Nevertheless, I think it says a lot about your product that the old compiled scripts still run on newer operating systems. It's a good thing, too, because most of us probably wouldn't take the time and effort to build working scripts against a new compiler, just so that it runs in an officially sanctioned interpreter. If it quits working, of course, I'll build a new version, bot, so long as it keeps working, why should I?
David A. Gray
You are more important than any technology.

Deana

  • Wilson WindowWare Tech Support
  • Pundit
  • *****
  • Posts: 1183
  • WinBatch® can do it.
    • WinBatch Tech Support Database
Re: Shutdown process interrupt to ask if I want close the script
« Reply #9 on: October 01, 2013, 07:32:13 am »
Nevertheless, I think it says a lot about your product that the old compiled scripts still run on newer operating systems. It's a good thing, too, because most of us probably wouldn't take the time and effort to build working scripts against a new compiler, just so that it runs in an officially sanctioned interpreter. If it quits working, of course, I'll build a new version, bot, so long as it keeps working, why should I?

Maintenance plans allows us to stay in business, continue to improve the software for the newer platforms and allows us to continue to support the software on forums such as this.
Deana F.
Technical Support
Wilson WindowWare Inc.

DAG_P6

  • Full Member
  • ***
  • Posts: 184
  • WinBatch rocks, and so does Wilson WindowWare!
    • WizardWrx
Re: Shutdown process interrupt to ask if I want close the script
« Reply #10 on: October 02, 2013, 05:56:44 am »
Maintenance plans allows us to stay in business, continue to improve the software for the newer platforms and allows us to continue to support the software on forums such as this.

That's why mine is current.
David A. Gray
You are more important than any technology.